Path: utzoo!mnetor!uunet!husc6!uwvax!oddjob!gargoyle!ihnp4!cuuxb!ltuxa!ll1a!spl1!laidbak!daveb From: daveb@laidbak.UUCP (Dave Burton) Newsgroups: comp.lang.c Subject: Re: The D Programming Language Message-ID: <1354@laidbak.UUCP> Date: 6 Mar 88 03:07:01 GMT References: <25284@cca.CCA.COM> Reply-To: daveb@laidbak.UUCP (Dave Burton) Organization: is pretty bad/My method of Lines: 27 In article <25284@cca.CCA.COM> g-rh@CCA.CCA.COM.UUCP (Richard Harter) writes: >Here is another feature for D whose absence in C has been irksome to >me -- I would like to be able to return several items from a function. >... But how do I get stuff back. >... Things which are returned need a mechanism equivalent to pass >by address. Please don't design D until you understand C. C has had pass by reference for a very long time (since its inception?). The following useless code illustrates: int flag, foobar(); x = foobar(&flag); ... int foobar(arg) int *arg; { *arg = 1; return 0; } Now, what could be simpler? -- --------------------"Well, it looked good when I wrote it"--------------------- Verbal: Dave Burton Net: ...!ihnp4!laidbak!daveb V-MAIL: (312) 505-9100 x325 USSnail: 1901 N. Naper Blvd. #include Naperville, IL 60540