home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!sdd.hp.com!usc!sol.ctr.columbia.edu!eff!news.byu.edu!news.mtholyoke.edu!nic.umass.edu!dime!barrett
- From: barrett@scooby.cs.umass.edu (Daniel Barrett)
- Newsgroups: comp.sys.amiga.programmer
- Subject: ARexx stem variables (records) vs. function return values?
- Message-ID: <52692@dime.cs.umass.edu>
- Date: 30 Aug 92 19:30:36 GMT
- Sender: news@dime.cs.umass.edu
- Reply-To: barrett@scooby.cs.umass.edu (Daniel Barrett)
- Organization: BLAZEMONGER INCORPORATED
- Lines: 32
-
-
- Can an ARexx user-defined function return a stem variable?
- (What we humans usually call a "record" or "struct". :-))
-
- I want a function to fill in the fields of a stem variable,
- return the value, and assign it to another stem variable. Like this:
-
- person. = ReturnStuff()
- SAY person.firstname person.lastname
- EXIT
-
- ReturnStuff: PROCEDURE
- guy.name = "Harry"
- guy.lastname = "Hosehead"
- RETURN guy.
-
- In this example, I'd like the "name" field of "person" to get filled in,
- so the program prints "Harry Hosehead".
-
- Is such a thing possible to do??? I'm wracking my brains trying
- to make it work, and the answer does not appear to be in any of my 3
- ARexx manuals.
-
- Please reply by e-mail, since our newsfeed is very slow at the
- moment. THANKS!!!
-
- Dan
-
- //////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- | Dan Barrett -- Dept of Computer Science, Lederle Graduate Research Center |
- | University of Massachusetts, Amherst, MA 01003 -- barrett@cs.umass.edu |
- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////////////
-