[3132] in java-interest
Re: Q on static method reference to class
daemon@ATHENA.MIT.EDU (stevem@tcdl.co.uk)
Wed Nov 1 07:44:40 1995
From: stevem@tcdl.co.uk
Date: Wed, 1 Nov 1995 11:18:25 GMT
To: java-interest@java.sun.com
>Thanks for the quick response! I was trying to avoid creating an instance
>in the class method. This seems to be an area where Java isn't quite as
>clean as (eg) Smalltalk ... in Smalltalk, a class method can refer to
>"super" and things work as expected. Also, a class method can say (eg)
>"self name" to get the name. Ie, the class is a "first class" object; it
>doesn't seem quite true in Java...
I agree, most runtime information systems, I've seen, including ones I've
benn involved in designing, provide a static class method which
also provides access to the name.
this shuldn't be too difficult to provide.
----------------------------------------------------------------------
Steve Millidge Senior Software Engineer
The Computer Department Ltd. Tel: +44 (0)1684 584100
Cirrus House Fax: +44 (0)1684 892812
9 Spring Lane North, Malvern Email: stevem@tcdl.co.uk
Worcs. WR14 1BU
United Kingdom
----------------------------------------------------------------------
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com