in reply to Re^4: subclass discovery at runtime
in thread subclass discovery at runtime

Yep... You're right... I just figured that out... Discovered an issue with recursing thru the namespace too; seems there's a 'main::main::' entry, which causes infinite recursion, so you'd need to keep track of what namespaces you've checked...
  • Comment on Re: Re^4: subclass discovery at runtime

Replies are listed 'Best First'.
Re^6: subclass discovery at runtime
by Aristotle (Chancellor) on Jan 27, 2003 at 23:00 UTC
    Sort of. There's a main:: in every package; just skip that entry and you'll be fine.

    Makeshifts last the longest.

      Right... Makes sense actually... That way every package can easily access the main package... Ah well... My duplicate-checking code seems to work too... At least I've learnt a bit about the symbol table and such because of this thread... :)