The following should fix passing objects by reference in member functions: *** ./bind/bind-translator.scm 2014-03-30 12:49:46.902558238 -0700 --- ../bind/bind-translator.scm 2014-03-30 12:48:47.290262641 -0700 *************** *** 1298,1303 **** --- 1298,1304 ---- [('const t) (rec t)] [('function . _) '<pointer>] [('instance _ c) c] + [('instance-ref _ c) c] [((or 'c-pointer 'ref) x) (if io (rec x)
I can't take credit for this, I lifted it from here: https://github.com/kristianlm/chicken-bind/commit/0e093935560069321ff5ecf39382978166f3d28c#commitcomment-5846633 Example of failing code: echo "class Foo {}; class Bar { public: void foo(Foo & foo); }; " | chicken-bind - -o - -Dan
_______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users