Re: mel

[prev] [thread] [next] [lurker] [Date index for 2004/04/26]

From: Simon Wistow
Subject: Re: mel
Date: 14:37 on 26 Apr 2004
> What happens if you have conflicting declarations in different procs?

  proc one ()  {
    	global int $foo = 3;
	    print ("\n" + $foo );
	    $foo = 1;
	    print (" " + $foo);
  }

  proc two () {
   	   global int $foo = 6;
	   print ("\n" + $foo );
	   $foo = 7;
	   print (" " + $foo);

  }

  one();
  two();


prints

  6 1
  1 7



Which is lovely



There's stuff above here

Generated at 14:02 on 01 Jul 2004 by mariachi 0.52