[Laszlo-dev] arg to apply and remove methods of LzState

André Bargull a.bargull at intensis.de
Fri May 9 05:56:23 PDT 2008


Just for the record:
Also see this mail-thread 
"http://www.openlaszlo.org/pipermail/laszlo-dev/2008-May/014606.html".

> Oh I  guess there aren't any callers of apply() that are passing an arg to
> LzState.apply(), except for one caller in LzState, which looks  like it
> slipped by accident at some point while we were figuring this out. I will
> just modify that to not  pass an arg.
>
>
>
>
> On Thu, May 8, 2008 at 10:52 PM, P T Withington <ptw at laszlosystems.com>
> wrote:
>
>   
>> > Are you saying there is a case where someone is making a delegate out of
>> > these methods?  I would say you should make a delegate to a 'wrapper' method
>> > that handles the argument and then calls the real method.  That way you
>> > don't have to change the signature of the public API.
>> >
>> > If you have a specific example, I could elaborate.
>> >
>> >
>> > On 2008-05-08, at 21:26 EDT, Henry Minsky wrote:
>> >
>> >  So I know we were discussing the general issue of making methods that are
>>     
>>> >> the targets of event sending obey the
>>> >> event protocol and accept an argument, but in the case of 'legacy' public
>>> >> APIs like the LzState apply() and remove methods(),
>>> >> which have been publicly not requiring an argument, should we be giving
>>> >> them
>>> >> an optional "ignore" argument?
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Henry Minsky
>>> >> Software Architect
>>> >> hminsky at laszlosystems.com
>>> >>
>>>       
>> >
>> >
>>     
>
>
> -- Henry Minsky Software Architect hminsky at laszlosystems.com


More information about the Laszlo-dev mailing list