View previous topic :: View next topic |
Author |
Message |
Nova
Joined: 18 Sep 2004 Posts: 23
|
Posted: Thu Dec 23, 2004 1:25 pm Post subject: redefine a class? |
|
|
I just wanted to know if it is possible in d to either redefine a class, or maybe undefine and define again? |
|
Back to top |
|
|
csauls
Joined: 27 Mar 2004 Posts: 278
|
Posted: Tue Dec 28, 2004 9:29 am Post subject: |
|
|
I'm not positive I quite get what you mean, but this might be in the right direction. You could have two classes by the same name residing in seperate modules, and refer to them by fully qualified names, and perhaps using aliases. For instance, in module Adam define class Foo, and in module Brian define another class Foo. You can now access both, using Adam.Foo and Brian.Foo respectively. Or you could use something like "alias Adam.Foo AFoo; alias Brian.Foo BFoo" to simplify it.
Am I getting you right? _________________ Chris Nicholson-Sauls |
|
Back to top |
|
|
Nova
Joined: 18 Sep 2004 Posts: 23
|
Posted: Tue Dec 28, 2004 1:21 pm Post subject: |
|
|
Not really, I failed to mention this would be needed during runtime. I've gotten the impression that its just not possible so I've decided to build around it.
Thanks anyway |
|
Back to top |
|
|
|