The Dink Network

Reply to Re: The Three Pillars of Dink v1.08

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 29th 2005, 09:57 PM
wizardg.gif
Paul
Peasant He/Him United States
 
So let me see if I have this right:

void talk( void )
{
int &x;
int &y;
int &z;
&x = 1;
&y = 1;
&z = 1;
say("&x &y &z &n", 1);
//says "1 1 1 &n" (&n is undefined)
func();
say("&x &y &z &n", 1);
//says "1 1 1 &n" (&n is undefined)
}

void func( void )
{
int &y;
int &z;
int &n;
&y = 2;
&n = 2;
say("&x &y &z &n", 1);
//says "1 2 0 2"
}

If not, what would each line say?

BTW, looking at those sample scripts reminded me, did anyone ever add /= as a valid operator? It always irked me a little that you had to write it as / instead.