Re: What about real polymorphism ?? [message #42027 is a reply to message #41951] |
Mon, 13 December 2004 23:11  |
marc schellens[1]
Messages: 183 Registered: January 2000
|
Senior Member |
|
|
> and no class methods", I mean IDL doesn't have many things of pure OO
> programming so you can't do things like singleton pattern (desing patterns
> by Erich Gamma, Richard Helm, ... for more information about this) i think
> even IDL couldn't do many of the basics patterns of this paradigm but
> anycase it didn't born to
> do that, and works quite well in many other things (Visualization, matrix
> operators, etc.).
A singleton is very possible with IDL:
Just use a global variable (also as your access point) and
check its existance in the constructor.
m
|
|
|