> 
> And number, no? For me as* methods are for conversion between types. E.i. if 
> you have string and want it as Integer you use asInteger.

no the point is exactly that :)
conversion between polymorphic objects

        asFloat
        asInteger
        asFraction



        asString 
        asSymbol
        asByteArray

        asArray
        asSet

not defined in Object :)


> 
> Uko
> 
>> 
>> #storeString
>> Produces legal Smalltalk source code that when executed will produce an
>> equivalent object to the receiver. Needs to be implemented only for
>> objects that can be specified as literals in Smalltalk syntax, but could
>> probably be implemented for a few other simple objects.
>> 
>> #displayString and so on.
>> UI frameworks and applications will need to have their own ways of
>> textually representing objects, so will add their own messages such as
>> #displayString. The *only* messages that any application or framework
>> can depend on *all* objects responding to are those that it defines
>> itself, and #printString and #printOn:.
>> 
>> Regards,
>> 
>> -Martin

Reply via email to