help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Using Smalltalk as a scripting language


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Using Smalltalk as a scripting language
Date: Thu, 29 Oct 2009 09:47:01 +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/29/2009 12:24 AM, Roland Plüss wrote:
I put OOP self there since did not see
any way for the c function to know otherwise which object received the
message.

Yes, that's fine.

Now how to I attach personal data to a smalltalk object?

You derive your class from CObject, or alternatively you embed a CObject in one of the instance variables. A CObject can point to arbitrary malloced data.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]