Re: Name-space proposal

new topic     » goto parent     » topic index » view thread      » older message » newer message

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>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu