On Mon, 2011-02-14 at 21:08 -0600, Igor Chudov wrote:
> I use only named variables.
> Is there some way to make them globally scoped? 

Prefix the name with an underscore:

#<_DiameterKnownEverywhere> = 1.0;

Otherwise, they're local to where they're defined:

#<DiameterInSubroutine> = 2.0;

With an underscore, you can even define a global in a subroutine and
pass it outward, which is almost certainly a Bad Thing for your sanity
in a month or two...

-- 
Ed
http://softsolder.com



------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to