Object factory... Is that how it's called??
stéphane ducasse
ducasse at iam.unibe.ch
Wed May 10 08:50:50 UTC 2006
On 8 mai 06, at 15:25, Cédrick Béler wrote:
>
>
> Michel Calonne a écrit :
>
>> Hello,
>> I'm quite new to smalltalk, and I'm developping on Squeak. As part
>> of my studies I must create a serializer, wich translates an
>> object to a xml file, and vice versa.
>>
> you should have a look at SIXX which is a XML serializer for squeak
> and you'll probably find ideas in it...
>
>> My question is, how should I do to create an instance of, for
>> example, a 'toto' class (yes, it is a String, readen from the xml
>> file)??
>> If anyone can help me, it would be great! Thanks by advance!
>>
> otherwise maybe:
> (Smalltalk at: 'toto' asSymbol ifAbsent:[^nil]) to get the class
> from a String
>
>> PS: Mr Ducasse, c'est ma question bonus ça!
>>
> + one point ? :)
The deal was that if they ask questions on any squeaking mailing-list
they get more credits :)
More information about the Squeak-dev
mailing list
|