in reply to Re: A caller() by any other name
in thread A caller() by any other name
IMHO, extending (caller)[0] to return an instance (c/w a package) isn't a violation to the same degree since it would be incumbent on the called sub/method to use the information presented...the design problem, such as it is, is outlined in my OP - being the need to implement inter-class relationships (as defined in a class diagram), hence my suggested afterthought WRT a class to implement the relationship between the participating classes - thus...
AFAICS, Re: Proper way to create 'globals' would only work for singleton/monadic classes - it would need some work to achieve the same end for classes having multiple instances.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: A caller() by any other name
by JadeNB (Chaplain) on Dec 04, 2008 at 22:22 UTC |