1. rob(and others): about scoping

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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>

new topic     » topic index » view message » categorize

2. Re: rob(and others): about scoping

Talvitie writes:

> ... 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...?

Perhaps it would be better if global symbols were
not visible when included indirectly like that,
but in 2.3 namespace identifiers will make it easy
to resolve global naming conflicts.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

3. Re: rob(and others): about scoping

Robert Craig writes:

> Perhaps it would be better if global symbols were
> not visible when included indirectly like that,
> but in 2.3 namespace identifiers will make it easy
> to resolve global naming conflicts.

It's good that you allready done something for that. I quess that's a pretty
good reason for me to upgrade my Euphoria to 2.3..

regards,
--Talvitie

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu