Article View: borland.public.jbuilder.java.language
Article #14910Re: Illogical constructor behaviour?
From: Tom.Eugelink
Date: Wed, 28 Jul 1999 00:00
Date: Wed, 28 Jul 1999 00:00
24 lines
1774 bytes
1774 bytes
>> The last one, 2b, I do not agree with: I am making a difference in >> initialization by placing the initialisation code outside of the >> constructor. So then it is defendable to also treat it differently. > >But the only _reasonable_ way to treat it would be to flag it as an >error: Either you have some automagic which moves it into the >constructor in a known manner (as today), _or_ you define that all >initialization need ne explicified by the programmer where they want >it - in the constructor or an invoked method. Well, I can see we are not going to see eye-to-eye on this one. I suggest we should agree to disagree (until a solid reason that is totally convincing comes up, naturally for my point of view ;-). Thanks for the discussion! >int[] _tmp = new int[3]; >_tmp[0] = 1; >_tmp[1] = 2; >_tmp[2] = 3; >foo = _tmp; >) Ahhh, the beauty of compiler optimized code...
Technical Details
Message-ID:
<379ea979.895467@forums.inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<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> <3796c981.4100195@forums.inprise.com> <uogh59kck.fsf@sds.no> <379c0a08.3224616@forums.inprise.com> <upv1fol0d.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/28 Message-ID: <379ea979.895467@forums.inprise.com> X-Deja-AN: 506083441 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> <3796c981.4100195@forums.inprise.com> <uogh59kck.fsf@sds.no> <379c0a08.3224616@forums.inprise.com> <upv1fol0d.fsf@sds.no> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language