Re: routine_id
- Posted by Irv Mullins <irv at ELLIJAY.COM> Nov 24, 1998
- 470 views
On Tue, 24 Nov 1998 10:47:05 +0100, Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL> wrote: >Oops, I have a problem (again namespace). >When I have two include files, that both contain a routine named: "bot_run" >and "bot_init" and they both use routine_id ("bot_run") and routine_id >("bot_init"), therefore binding nor shrouding will be possible. Ahh!! > >The whole namespace thingie should be handled differently, instead of these >'hacks'.. > >Robert ? > It's not just 'bots' - almost any program of worthwhile length runs into this namespace thingy. If we use other people's includes; Jiri's fonts, for example, we have to tread carefully. It even becomes a challenge to create meaningful but non-conflicting names for our own routines in multiple files. I hereby re-submit for further discussion my versions of how it might be handled: with fonts do -- where fonts.e is an include set_background(BLUE) ..bla.. end with with mywin do -- and mywin is another include set_background(BLACK) end with or, less verbosely (in some cases, more in others) fonts.set_background(BLUE) mywin.set_background(BLACK) Irv