Reply to Re: The Three Pillars of Dink v1.08
If you don't have an account, just leave the password field blank.
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.
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.