🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Global Singleton Classes?

#18430
From: Gerry Mantha
Date: Mon, 29 Jun 1998 00:00
19 lines
1155 bytes
Torsten, nope it wont compile.  I wrote this in the email in about 1 minute
or less at 2 in the morning with a hangover.  Don't worry I'll be better
from now on ;-)

Just hope that Rob saw your reply!


Torsten Welches wrote in message <35966155.4648714@forums.borland.com>...
>Gerry,
>
>your code does not compile as is.
>You can't reference a non-static variable or method from a static
>method. Hence your mySingleton variable must be declared static. Or am
>I missing something basic?
>BTW - your class should start "class MySingleton {"
>not "class MySingleton(){"
>
>Torsten
Technical Details
Message-ID: <6n9isg$23l34@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3593F482.6CAEEFBA@robco-inc.com> <6n319c$qf87@forums.borland.com> <35966155.4648714@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b8537ec38763bb48
X-Google-Attributes: gidf74b3,public
From: "Gerry Mantha" <gmantha@home.com>
Subject: Re: Global Singleton Classes?
Date: 1998/06/29
Message-ID: <6n9isg$23l34@forums.borland.com>
X-Deja-AN: 367293018
References: <3593F482.6CAEEFBA@robco-inc.com> <6n319c$qf87@forums.borland.com> <35966155.4648714@forums.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.1
Organization: QTECH Hybrid Systems Inc.
Newsgroups: borland.public.jbuilder.java.language