Closed GoogleCodeExporter closed 9 years ago
Ah, I see... We shouldn't use @ByVal, etc. on primitive types (remove that and
it will fix your errors), but using them shouldn't produce incorrect code
either. I'll be fixing this, thanks for reporting!
Original comment by samuel.a...@gmail.com
on 24 May 2012 at 1:26
I was just aping the example, and I did not want to make things complicated by
passing references. I will gladly remove the @ByVal stuff! Thanks for getting
back to me so fast.
Original comment by wtrib...@gmail.com
on 24 May 2012 at 6:16
Ok, I've fixed that in the latest release! Primitives types can't be passed by
reference since the Java language doesn't support that: They are always by
value. To map C++ references, we have to use a Pointer subclass (e.g.:
BoolPointer if your bool were returned by reference) or an array type (but
since those require their capacity to be known before creating them and because
they can't be mapped to native memory, they don't always work), annotated with
@ByRef obviously.
Anyway, the fact that you could get this running the way you wanted it just by
"aping" the examples in the README.txt file is a good indication of how
effective this approach can be. Great to hear that!
Original comment by samuel.a...@gmail.com
on 27 May 2012 at 12:27
Original issue reported on code.google.com by
wtrib...@gmail.com
on 24 May 2012 at 1:19Attachments: