Creating a catch-all for unknown handlers
ambassador at fourthworld.com
Sun Dec 12 16:59:48 CST 2004
Ken Ray wrote:
> On 12/12/04 2:41 PM, "Gordon" <gwalias-rev at yahoo.com> wrote:
>>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
> Well, you can do this now:
> set the client.address.zip of this stack to "90034"
> 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.
Fourth World Media Corporation
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode