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: 109fba,d275ffeffdf83655 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,d275ffeffdf83655 X-Google-Attributes: gid103376,public X-Google-Thread: f5d71,d275ffeffdf83655 X-Google-Attributes: gidf5d71,public X-Google-Thread: 146b77,d275ffeffdf83655 X-Google-Attributes: gid146b77,public From: mtobler@no-spam-ibm.net (Michael J. Tobler) Subject: Re: Ada vs C++ vs Java Date: 1999/01/20 Message-ID: #1/1 X-Deja-AN: 434721647 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> <78107o$ovt@drn.newsguy.com> X-Notice: should be reported to postmaster@ibm.net X-Complaints-To: postmaster@ibm.net X-Trace: 20 Jan 1999 07:08:43 GMT, 32.100.170.47 Organization: MJT Newsgroups: comp.lang.ada,comp.lang.c++,comp.vxworks,comp.lang.java Date: 1999-01-20T00:00:00+00:00 List-Id: In article <78107o$ovt@drn.newsguy.com>, kevin@nospam.com.net says... [snip] > 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. Are you stating that the client variables passed as arguments to the member function (not a procedure) should have their values swapped? That's understandable because Java is pass-by-value with native types. There are ways to do it, if you know how to use the language. > so much for the java power where one can not write trivial procedure > like the above using primitive data type Each language has its strengths and weaknesses - use the language that is appropriate. -- <<<<<<<<<<<<<<<< Blue Skies >>>>>>>>>>>>>>>> < Michael J. Tobler: mtobler@no-spam-ibm.net > < **remove "no-spam-" when replying** > < http://www.webbrew.com/toblermj > < MJTobler:Instant Messenger; 28038932:ICQ > <<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>