On 10/31/2009 02:43 AM, Roland Plüss wrote:
Nice try but this won't work. I have an engine pointer and therefore can
not use a singleton in c++ ( although in smalltalk it becomes one ).
Hence I am forced to work without any static class members there. The
only chance I have to get this working is to somehow inject the created
object into the class side variable. This would by itself work if the
oop I assign would actually show up in smalltalk. I don't know yet why
it stays nil. Did I obtain the wrong c pointer? Did I declare the class
side variable incorrectly?

No, you declared the Smalltalk struct incorrectly. If you cannot use a static class member, use a global variable in the module that implements the bindings. I just made it more clever than it needed to be.

Paolo


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to