|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language |
Date: | Sat, 31 Oct 2009 12:05:41 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |