Issue 19: RegEx return, Array foreign constructor, mysql, (?:)
Status:  Fixed
Owner:
Closed:  Aug 2010
Project Member Reported by gameh...@gmail.com, Apr 5, 2010

Hi Hugh and others,
   I've created set of patches for hxcpp and std/cpp for anyone interested.
   There's mysql.ndll code ported to C++ and haxe bindings for it, and also
few fixes for hxcpp bugs that were on the way of compiling our project.
 
   Unfortunately, although compilation succeed, resulting binary crashing
deep down in the GC code, so we're going to try another way of speeding up
our code.
 
Best regards,
Vadim,
cpp_backend_patches.zip
20.2 KB   Download
Apr 5, 2010
Project Member #1 gameh...@gmail.com
Hello Hugh,
   that's me again.
 
   I was wondering, why did you changed regexp_matched in C++ to return null
when submatch index is bigger than number of matches? Neko throws an
exception in that case.
   Since haXe doesn't give away number of submatches regexp have, there's no
way to tell if we looking at optional submatch or we're exceeded number of
submatches already. Neko way give us more information, optional submatch
return null and exception is thrown if we are over the limit.
 
Best regards,
Vadim.
Aug 3, 2010
Project Member #2 gameh...@gmail.com
Thanks for the patch.
As it stands, the mysql library has a problem with GC. The "alloc" function does not exist in HXCPP.  That is, the ability to allocate memory that is conservatively scanned.
I have added conservative scanning of the stack, so it should be possible to implement this now - I just have not got around to it.
The RegEx code should be fixed, and I've changed the foreign constructor stuff, so that should work too.
I'm looking for help maintaining the external libraries - I'll keep this in mind when I get orgainsed on this front.
Status: Fixed