🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Illogical constructor behaviour?

#14979
From: Tom.Eugelink
Date: Thu, 22 Jul 1999 00:00
15 lines
1269 bytes
On 20 Jul 1999 09:58:40 +0200, Tor Iver Wilhelmsen
<tor.wilhelmsen@sds.no> wrote:

>Tom.Eugelink@OVSoftware.com writes:
>
>>    private String something = "Hello world";
>
>This is automagically moved (by the compiler) into the constructor:
>After the call to super(), but before any other code you have there.

Right, and that is exactly where IMHO the problem is. It should be
done at the moment the variable are allocated, because there is no
reason to do it later. (And doing it later causes problems.)

Tom
Technical Details
Message-ID: <3796c981.4100195@forums.inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3789a7ea.1163072@forums.inprise.com> <uzp1241hv.fsf@sds.no> <378adee2.3105084@forums.inprise.com> <uhfn8aph8.fsf@sds.no> <378c7224.5379925@forums.inprise.com> <MPG.11f734ffaf88e14d989683@forums.inprise.com> <3792d12a.4122557@forums.inprise.com> <upv1osstw.fsf@sds.no> <379424a2.91026959@forums.inprise.com> <u1ze3g3bj.fsf@sds.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,c150801d0979e255
X-Google-Attributes: gidf74b3,public
From: Tom.Eugelink@OVSoftware.com
Subject: Re: Illogical constructor behaviour?
Date: 1999/07/22
Message-ID: <3796c981.4100195@forums.inprise.com>
X-Deja-AN: 503919479
References: <3789a7ea.1163072@forums.inprise.com> <uzp1241hv.fsf@sds.no> <378adee2.3105084@forums.inprise.com> <uhfn8aph8.fsf@sds.no> <378c7224.5379925@forums.inprise.com> <MPG.11f734ffaf88e14d989683@forums.inprise.com> <3792d12a.4122557@forums.inprise.com> <upv1osstw.fsf@sds.no> <379424a2.91026959@forums.inprise.com> <u1ze3g3bj.fsf@sds.no>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language