[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: :? syntactical sugar request
- From: Steve Dekorte <steve@...>
- Date: Mon, 9 Apr 2001 12:22:17 -0700
Luiz Henrique de Figueiredo wrote:
That works if you always want that behavior, but I'd like it to only
return the nop function in particular cases.
If those "particular cases" depend on the table or index, then you can
settagmethod(tag(object),"index", function (t,i) DO SOMETHING HERE end)
I should have been more specific - I'd like to be able to use both types
of lookups on the same table.
In this example, the Socket's delegate happens to be the ChatApp. I'd
like the delegate message to be sent if the ChatApp implements the
socket_received_ method and to be ignored otherwise, but I want the
drawOutputText to raise an error if it's missing. Same table, different