Login  Register

Re: What about #ifNotNil and #ifNotNilDo:

Posted by Marcus Denker on Feb 22, 2009; 6:31pm
URL: https://forum.world.st/What-about-ifNotNil-and-ifNotNilDo-tp1309537p1309540.html


On 22.02.2009, at 19:04, Keith Hodges wrote:

> Marcus Denker wrote:
>> On 21.02.2009, at 18:31, Damien Cassou wrote:
>>
>>
>>> Hi,
>>>
>>> is there a way to get the #ifNotNilDo: behavior to write compatible
>>> Squeak and Pharo code?
>>>
>>>
>>
>> -> do not use ifNotNilDo:
>> -> use ifNotNil: without the argument.
>>
>> The real fix of course would be for Squeak adopting the optinal args
>> changeset
>> (this is from 2007...)
>>
>> Marcus
>>
> ok, we shall add that to LPF, where is it?
>

http://bugs.squeak.org/view.php?id=6426

The solution is to adopt vasilie's fix:

        http://blog.3plus4.org/2007/04/22/notnil-then-what/

>
> What would help though is if you told us what you are changing/
> breaking
> so that we can do something about it. The Author class is  another
> incompatibility issue that I expect to have to address via LPF. Are
> there any more?

Thousands. Literally.

I am highly skeptical about LPF.

        Marcus


--
Marcus Denker  --  [hidden email]
http://www.marcusdenker.de


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project