rob(and others): about scoping
- Posted by tapueu at hotmail.com Nov 24, 2001
- 388 views
This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C174D2.07B8F2C0 charset="iso-8859-1" In Euphoria it's possible to declare variables, functions, etc. to local and global. Now I'd like to have a little solution to this global variable. You see, when inc.e in included to main file, and inc2.e is included to inc.e and there's some global keywords in inc2.e then not only inc.e will see them but also the main file. Sometimes this is good, sometimes it gives some naming problems. Rob, can you add for example some new keyword or some other solution to Eu 2.3 for this one? OR maybe you already did it...? regards, --Talvitie ------=_NextPart_000_0005_01C174D2.07B8F2C0 charset="iso-8859-1" Content-Transfer-Encoding: 8bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=iso-8859-1" http-equiv=Content-Type> <META content="MSHTML 5.00.2614.3500" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>In Euphoria it's possible to declare variables, functions, etc. to local and global. Now I'd like to have a little solution to this global variable. </FONT><FONT face=Arial size=2>You see, when inc.e in included to main file, and inc2.e is included to inc.e and there's some global keywords in inc2.e then not only inc.e will see them but also the main file. Sometimes this is good, sometimes it gives some naming problems.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>Rob, can you add for example some new keyword or some other solution to Eu 2.3 for this one? OR maybe you already did it...?</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>regards,</FONT></DIV>