From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 146b77,d275ffeffdf83655 X-Google-Attributes: gid146b77,public X-Google-Thread: 103376,d275ffeffdf83655 X-Google-Attributes: gid103376,public X-Google-Thread: f5d71,d275ffeffdf83655 X-Google-Attributes: gidf5d71,public X-Google-Thread: 109fba,d275ffeffdf83655 X-Google-Attributes: gid109fba,public From: kevin@nospam.com.net Subject: Re: Ada vs C++ vs Java Date: 1999/01/18 Message-ID: <78107o$ovt@drn.newsguy.com>#1/1 X-Deja-AN: 434292705 References: <369C1F31.AE5AF7EF@concentric.net> <369DDDC3.FDE09999@sea.ericsson.se> <369e309a.32671759@news.demon.co.uk> <77ledn$eu7$1@remarQ.com> <77pnqc$cgi$1@newnews.global.net.uk> <8p64spq5lo5.fsf@Eng.Sun.COM> <8p6vhi5mv34.fsf@Eng.Sun.COM> <8p6yan1xger.fsf@Eng.Sun.COM> <780so2$u83$1@nnrp1.dejanews.com> Organization: Newsguy News Service [http://www.newsguy.com] Newsgroups: comp.lang.ada,comp.lang.c++,comp.vxworks,comp.lang.java Date: 1999-01-18T00:00:00+00:00 List-Id: > >In article <8p6yan1xger.fsf@Eng.Sun.COM>, > Mike Coffin wrote: > (on parameter passing) > >> Compare with rules of C, Java, or almost any other >> language: they lack *all* these nifty features and seem to get >> along fine. > Ok, this is a little test in Java: write a procedure in java that takes 2 formal parameters of type integer, and on return the first parameter will have the value of the second parameter, and the second parameter will have the value of the first parameter before the call. i.e. it swaps the parameters around. guess what. it is impossible to do this trivial thing in Java. so much for the java power where one can not write trivial procedure like the above using primitive data typekevin