[Prev][Next][Index][Thread]

Re: Java and Lisp



What a great idea Howard.   "Howard R. Stearns" <howard@elwoodcorp.com>

I  Wish a group of LISP aces would address this issue and come up with ways
to solve this thorny and freedom limiting issue for those who use dymanic
languages as their main tools.
This issue needs a "quick" answer that would be implemented by SUN. JAVA is
moving at the speed of light in becoming THE language, and this is the time
to influence its direction becfore it gets too complicated.
I included a message that I sent earlier to JAVASOFT and the reply I got.





        ----- Begin Included Message -----

        From jim@digitalideas.com  Wed May 22 01:10:37 1996
        Date: Wed, 22 May 1996 04:08:09 +0000
        From: 7100 <7100@digitalideas.com>
        Mime-Version: 1.0
        To: java@java
        Subject: function pointers in JAVA
        X-Url: http://www.javasoft.com/java.sun.com/faq2.html
        Content-Transfer-Encoding: 7bit

        I know that JAVA does not support pointers. But Function pointers in
        C and C++ are VERY important to me. Can you please tell me how do I
        implement the equivelant of function pointers in JAVA?
        Similarly, in LISP I can use APPLY or FUNCALL to apply functions to
        their arguments, to achieve the same results.


        ----- End Included Message -----

Date: Thu, 23 May 1996 18:23:04 -0700
From: javaengr@mtvmail.Corp.Sun.COM (Java Engineer)
To: jim@digitalideas.com
Subject: RE: function pointers in JAVA
Cc: javaengr@chicosun.Corp.Sun.COM
X-Sun-Charset: US-ASCII

Hi Jim,


There is however an implicit "this" pointer to the Java object being
referenced.  I am not aware of any function pointers implementation
in Java as all methods (functions really) are treated as objects as well.

If you like more info before adopting Java, check out the online
tutorial which gives useful hints and how-tos:

http://java.sun.com/java.sun.com/tutorial/java/index.html

Good luck!

Thanks for your interest in Java!




Follow-Ups: