Creating a catch-all for unknown handlers
Richard Gaskin
ambassador at fourthworld.com
Sun Dec 12 17:59:48 EST 2004
Ken Ray wrote:
> On 12/12/04 2:41 PM, "Gordon" <gwalias-rev at yahoo.com> wrote:
>
>
>>Dear Revolutionaries
>>
>>Is this feasible or just a crazy notion ...?
>>
>>Is there a way to create a catch-all backscript that
>>would catch any "unknown handler" error and then look
>>through a list of e.g. custom properties to see if it
>>could be evaluated, and then returning the value.
>>
>
>
>>This would make it possible to create custom
>>properties with names like client.address.zip and then
>>just use them in your code where a handler would
>>normally be.
>
>
> Well, you can do this now:
>
> set the client.address.zip of this stack to "90034"
>
> (later:)
>
> put the client.address.zip of this stack
> --> 90034
>
>
> Does this not do what you want?
That's perfectly valid syntax, but Scott Raney advised me against using
dot notation in property and handler names in anticipation of future
exhancements which may support OOP syntax.
--
Richard Gaskin
Fourth World Media Corporation
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list