Speaking of init...
I don't want to add checks to all my methods to make sure Init() was called.
I've been toying with the idea that all methods are private *except* init(), which is public. When init() gets called properly and everything works right, then the last thing it does is "publicize" the methods that should be public:
This.someMethod = Variables.someMethod; This.someOtherMethod = Variables.someOtherMethod;
...and so on, and then "privatize" the init() method itself:
Variables.init = This.init; StructDelete(This, "init");
...so it can't be called twice.
I haven't tried it yet. Don't have time no, but I figured I could put the idea out there and let y'all find out what's wrong with it.
--
Ben Curtis
WebSciences International
http://www.websciences.org/
v: 310 478 6648
f: 310 235 2067----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
