[ENH] ifNotEmptyDo-md (v2)

denker at iam.unibe.ch denker at iam.unibe.ch
Thu Oct 7 13:49:43 UTC 2004


from preamble:

"Change Set:		ifNotEmptyDo-md v2
Date:			7 October 2004
Author:			Marcus Denker

v2: added ifNotEmptyDo:ifEmpty and ifEmpty:ifNotEmptyDo:, for
consistency this adds  ifNil:ifNotNilDo:  ifNotNilDo:ifNil: to Object
and UndfinedObject

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. 

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: 1749 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20041007/4d8c97a8/ifNotEmptyDo-md.cs.obj


More information about the Squeak-dev mailing list