🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7171

Re: Altering data with a method call

#7171
From: CLG
Date: Sun, 08 Jul 2001 21:13
31 lines
1954 bytes
This discussion comes up once a week here.  You can change anything inside
of theobject.  Thus, if you want modified vvalues, they must be placed
inside of a wrapper object.  Its like in c when you pass a pointer to a
pointer.  Search the forums here for pass by value and pass by reference.

--
Peace,


Carl L. Gilbert
http://www.rigidsoftware.com
ICQ 614395-currently stolen working to retrieve.

"Then said I, Wisdom [is] better than strength: nevertheless the poor man's
wisdom [is] despised, and his words are not heard." Ecclesiastes 9:16

"David Chandler" <davidschandler@netzero.net> wrote in message
news:3B4812BB.F35B508E@netzero.net...
> I am moving from Pascal to Java.  In Pascal you could pass either values
or
> variables to a procedure.  Variables get altered so the revised data gets
> passed back.  Java allows you to pass only values.  I can get a single
> return value, but what if I want a method to alter other variables?  Do I
> have to rely on globals?
>
> What is the usual practice here?
>
> --
> David Chandler
>
>
Technical Details
Message-ID: <3b48ce15$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3B4812BB.F35B508E@netzero.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,1c0aad99b07f6335
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-07-08 14:29:55 PST
From: "CLG" <lamont_gilbert @ rigidsoftware.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3B4812BB.F35B508E@netzero.net>
Subject: Re: Altering data with a method call
Date: Sun, 8 Jul 2001 17:13:30 -0400
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 24.181.226.14
Message-ID: <3b48ce15$1_2@dnews>
X-Trace: dnews 994627093 24.181.226.14 (8 Jul 2001 14:18:13 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews