Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.java > #8508

Re: quesito su java e variabili

X-Received by 10.66.102.39 with SMTP id fl7mr13318186pab.38.1441615997879; Mon, 07 Sep 2015 01:53:17 -0700 (PDT)
X-Received by 10.182.106.137 with SMTP id gu9mr72693obb.42.1441615997844; Mon, 07 Sep 2015 01:53:17 -0700 (PDT)
Path csiph.com!xmission!news.glorb.com!kq10no1731858igb.0!news-out.google.com!nt1ni3359igb.0!nntp.google.com!kq10no1731852igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups it.comp.java
Date Mon, 7 Sep 2015 01:53:17 -0700 (PDT)
In-Reply-To <mshq0e$4fg$1@speranza.aioe.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=168.230.208.248; posting-account=0gGIFwoAAADY_g510ccNBiAgm55kNm68
NNTP-Posting-Host 168.230.208.248
References <mshq0e$4fg$1@speranza.aioe.org>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <8dc8d07f-1f44-4a47-a322-1403253a9206@googlegroups.com> (permalink)
Subject Re: quesito su java e variabili
From 4ndre4 <a.laforgia@gmail.com>
Injection-Date Mon, 07 Sep 2015 08:53:17 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Xref csiph.com it.comp.java:8508

Show key headers only | View raw


On Sunday, 6 September 2015 17:35:33 UTC+1, Vittorio  wrote:

[...]
> Che differenza c'è  tra i due? A me il risultato è uguale, ad esempio se 
> rimuovo "r"  nella classe :

L'assignment con side effect e` quello:

t = (r=3)

che ha come side effect di assegnare 3 ad r. 

Quando rimuovi la variabile e tutti gli assignment, stati rimuovendo r e tutti gli assignment ad r (non serve, di fatto, assegnare ad 3, perche` tutti gli assignment precedenti a r=3 vengono sovrascritti, ed e non viene mai usata). 
Quando rimuovi la variabile ma tieni gli assignment con side effects, stai rimuovendo r, e tenendo t = 3 (l'assignment che originalmente aveva un side effect).

Back to it.comp.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

quesito su java e variabili "Vittorio" <geremia@tim.it> - 2015-09-06 18:35 +0200
  Re: quesito su java e variabili "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-09-06 22:17 +0200
    Re: quesito su java e variabili "Vittorio" <geremia@tim.it> - 2015-09-06 23:40 +0200
  Re: quesito su java e variabili 4ndre4 <a.laforgia@gmail.com> - 2015-09-07 01:53 -0700
    Re: quesito su java e variabili "Vittorio" <geremia@tim.it> - 2015-09-07 13:27 +0200
      Re: quesito su java e variabili 4ndre4 <a.laforgia@gmail.com> - 2015-09-08 02:27 -0700
        Re: quesito su java e variabili "Vittorio" <geremia@tim.it> - 2015-09-08 13:17 +0200
          Re: quesito su java e variabili 4ndre4 <a.laforgia@gmail.com> - 2015-09-09 01:12 -0700
            Re: quesito su java e variabili "Vittorio" <geremia@tim.it> - 2015-09-09 12:52 +0200
              Re: quesito su java e variabili rootkit <rootkit@email.it> - 2015-09-09 06:05 -0700
              Re: quesito su java e variabili 4ndre4 <a.laforgia@gmail.com> - 2015-09-09 15:41 -0700
              Re: quesito su java e variabili Pa°L° <paolovanacore@gmail.com> - 2015-09-10 00:07 -0700
                Re: quesito su java e variabili "Vittorio" <geremia@tim.it> - 2015-09-10 13:59 +0200
                Re: quesito su java e variabili 4ndre4 <a.laforgia@gmail.com> - 2015-09-22 15:24 -0700
                Re: quesito su java e variabili "Vittorio" <geremia@tim.it> - 2015-09-23 21:56 +0200
                Re: quesito su java e variabili 4ndre4 <a.laforgia@gmail.com> - 2015-09-24 04:19 -0700

csiph-web