private handlers in a public library
dick.kriesel at mail.com
Fri Dec 8 02:12:30 CST 2006
On 12/6/06 10:59 PM, "Dar Scott" <dsc at swcp.com> wrote:
> I think your checking method is pretty clever and can be handy.
> Though the cost of a couple lines and a few microseconds might be
> much for small handlers, this might work OK for larger handlers.
When microseconds don't matter, it can be done in one line.
if trespass() then pass privateHandler
-- private stuff
-- same one liner for privateFunction and uPrivateProperty
return item 1 of line -2 of the executionContexts is not \
item 1 of line -3 of the executionContexts
Function "trespass" can instead reside in some other library.
More information about the use-livecode