[ENH] ifNotEmptyDo-md
denker at iam.unibe.ch
denker at iam.unibe.ch
Thu Oct 7 13:07:08 UTC 2004
from preamble:
"Change Set: ifNotEmptyDo-md
Date: 7 October 2004
Author: Marcus Denker
Requires: ValueWithPossibleArg-md.
In the spirit of ifNotNilDo: this adds an ifEmptyDo: to be used
as an alternative to ifNotEmpty:.
Fixes the comments of ifNotEmpty:, ifNotEmpy:ifEmpty and
ifEmpty:ifNotEmpty:
to describe that it can take an 1-arg block.
I did not add ifNotEmpyDo:ifEmpty ifEmpy:ifNotEmptyDo, I don't know if
that
would really be required.
The interface of ifNotNil and variants will be fixed after we have the
new compiler,
as those are compiled inline and need a compiler change
ifNotEmpty: and the rest are changed to use valueWithPossibleArgument:,
which should be somewhat faster.
"
!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ifNotEmptyDo-md.cs.gz
Type: application/octet-stream
Size: 1534 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20041007/ae689e1e/ifNotEmptyDo-md.cs.obj
More information about the Squeak-dev
mailing list
|