[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language
From: |
Roland Plüss |
Subject: |
Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language |
Date: |
Sat, 31 Oct 2009 16:38:52 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090926) |
> On 10/31/2009 04:22 PM, Roland Plüss wrote:
>> Is there a macro
>> for the class side instance variables of Object? Or do I have to make
>> them on my own ( not a problem by itself ).
>>
>
> The latter.
Seems to have done the trick. I'm though not using anymore the macro
approach. I'm a bit allergic against those :P . Looks now like this (
maybe you can add this somewhere to the docs for others if they wanna
use it ).
struct csObject{
OOP objSize;
OOP objClass;
};
struct csClassObject : public csObject{
OOP superclass;
OOP subClasses;
OOP methodDictionary;
OOP instanceSpec;
OOP instanceVariables;
OOP name;
OOP comment;
OOP category;
OOP environment;
OOP classVariables;
OOP sharedPools;
OOP securityPolicy;
OOP pragmaHandlers;
};
Hence I used it now like this:
struct csEngineClass : public csClassObject{
OOP uniqueInstance;
};
struct csEngine : public csObject{
/* wrapped c++ data */
};
Now it works and I can inject the uniqueInstance from c++ land.
--
Yours sincerely
Plüss Roland
Leader and Head Programmer
- Game: Epsylon ( http://epsylon.rptd.ch/ ,
http://www.moddb.com/games/4057/epsylon )
- Game Engine: Drag(en)gine ( http://dragengine.rptd.ch ,
http://www.moddb.com/engines/9/dragengine )
- Normal Map Generator: DENormGen ( http://epsylon.rptd.ch/denormgen.php )
signature.asc
Description: OpenPGP digital signature
- Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language, (continued)
- Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language, Roland Plüss, 2009/10/30
- Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language, Paolo Bonzini, 2009/10/30
- Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language, Roland Plüss, 2009/10/30
- Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language, Paolo Bonzini, 2009/10/31
- Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language, Roland Plüss, 2009/10/31
- Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language, Paolo Bonzini, 2009/10/31
- Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language, Roland Plüss, 2009/10/31
- Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language, Paolo Bonzini, 2009/10/31
- Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language, Roland Plüss, 2009/10/31
- Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language, Paolo Bonzini, 2009/10/31
- Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language,
Roland Plüss <=
- Re: [Help-smalltalk] Re: Using Smalltalk as a scripting language, Paolo Bonzini, 2009/10/31