Actually this code:

True basicNew ifTrue: [ "some code" ]

works fine on the latest Pharo 3 because of Opal :)

But nice trick for the old compiler :)


2013/6/26 Nicolas Cellier <nicolas.cellier.aka.n...@gmail.com>

> Because you don't know the tricks... This one should be just fine
>
> True basicNew ifTrue: [ "some code" ] yourself
>
>
> 2013/6/26 Clément Bera <bera.clem...@gmail.com>
>
>> True basicNew ifTrue: [ "some code" ]
>>
>> hehe raises NonBooleanReceiver :)
>>
>>
>> 2013/6/26 Camillo Bruni <camillobr...@gmail.com>
>>
>>> why not, let's "forbid" them with an error message!
>>>
>>> => maybe you can and error to #become: on nil / true / false as well?
>>>
>>> On 2013-06-26, at 14:20, Torsten Bergmann <asta...@gmx.de> wrote:
>>>
>>> > Boolean new        -> error
>>> > Boolean basicNew   -> is possible
>>> >
>>> > should we care?
>>> >
>>>
>>
>>
>
>
> --
> Clément Béra
> Mate Virtual Machine Engineer
> Bâtiment B 40, avenue Halley 59650 *Villeneuve d'Ascq*
>

Reply via email to