Re: Name-space proposal
- Posted by jacques deschĂȘnes <desja at globetro?t?r.net> Aug 02, 2007
- 469 views
this is a reasonable proposal, I back it. What is in the main file of a program should have priority than what is in include in case of redefinition. regards, Jacques DeschĂȘnes Bernie Ryan wrote: > > > Anybody: > > If name-space worked in this way it would solve a lot of problems. > > If a program contains a function foo()in the local main file and another > > file is included containing a foo() function. The interpeter would not > > stop but continue using the foo() function in the local main file. > > When the program ends; the program would issue a warning that there > > is a duplicate function foo() exists in include file xxx.e just > > as it lists unused constants etc. > > This would eliminate breaking code and allow debugging. > > There could also be a special flag Example: with_out_name_space > > to turn this on/off > > Bernie > > My files in archive: > WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API > > Can be downloaded here: > <a > href="http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan">http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan</a> > > > Bernie > > My files in archive: > WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API > > Can be downloaded here: > <a > href="http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan">http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan</a>