[Newbies] Re: error trap

Klaus D. Witzel klaus.witzel at cobss.com
Mon Aug 14 08:44:37 UTC 2006


On Mon, 14 Aug 2006 10:17:40 +0200, Damien Cassou  
<damien.cassou at laposte.net> wrote:
> Klaus D. Witzel wrote:
>> For an example try a printIt on
>>   ^ true ifTrue: #a ifFalse: [false ifTrue: #b ifFalse: #c]
>>  Again, a "natural" confusion between an object's value and a block's  
>> value.
>
> "
>   <- argument of ifTrue: must be a block or variable ->
> "
>
>
> In VW, there is no Object>>value method. But #value is implemented in  
> Boolean and UndefinedObject. Is this Smalltalk-standard to have #value  
> on Object ?

Just scanned SmalltalkV2.sources and SqueakV1.sources: #value is not  
implemented by Object nor by UndefinedObject.

/Klaus



More information about the Beginners mailing list