record test(a,b)
procedure main()
x := test(1,2);
write("ONE=",x.a,"TWO=",x.b);
func(x);
write("THREE=",x.a,"FOUR=",x.b);
end
procedure func(y)
y.a := 3;
y.b := 4;
return
end

Dennis J. Darland
[EMAIL PROTECTED]
----- Original Message ----- 
From: "Steve Wampler" <[EMAIL PROTECTED]>
To: "Dennis J. Darland" <[EMAIL PROTECTED]>
Cc: "Louis Kruger" <[EMAIL PROTECTED]>; "Unicon"
<[EMAIL PROTECTED]>
Sent: Thursday, October 23, 2003 1:00 PM
Subject: Re: [Unicon-group] How to replace side effects efficiently?


> On Wed, 2003-10-22 at 20:35, Dennis J. Darland wrote:
> > I understood records & classes to be passed by address.
> > I used this in my version of rtsafe in apfp.icn.
>
> Yes, that's correct, and actually useful.  However, that's
> different from having a reference type accessible to the
> user, where there are many more possible feature interactions
> that have to taken into account.
>
> > Also I got the troubles I was having with apfp to go away by changing
the
> > global I mentioned to a define.
>
> That was certainly an odd problem!  I was unable to reproduce it
> in a simpler test case and so didn't look into it further.
>
> -- 
> Steve Wampler -- [EMAIL PROTECTED]
> Quantum materiae materietur marmota monax si marmota
>                     monax materiam possit materiari?
>




-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to