Shouldn't ifEmpty return self?
marcelo Cortez
jmdc_marcelo at yahoo.com.ar
Mon Jun 12 18:49:21 UTC 2006
Ron
in your example ( with doit)
#(1) ifEmpty: [nil]
ifEmpty block don't qualify, so return the receiver.
the receiver of Doit is UndefinedObject
from there you have nil how result
best regards
MDC
--- Ron Teitelbaum <Ron at USMedRec.com> escribió:
> Shouldn't ifEmpty: return self?
>
>
>
> #(1) ifEmpty: [nil] -> Returns nil
>
> #(1) ifNil: [nil]. -> Returns #(1)
>
>
>
> Ron Teitelbaum
>
>
>
> >
>
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
More information about the Squeak-dev
mailing list
|