[1983] in java-interest
Re: method/fn ptrs?
daemon@ATHENA.MIT.EDU (Sami Shaio)
Wed Sep 20 23:08:59 1995
Date: Wed, 20 Sep 1995 15:44:35 -0700
From: Sami.Shaio@Eng.Sun.COM (Sami Shaio)
To: java-interest@java.Eng.Sun.COM, fgreco@lehman.com
There is no direct equivalent in Java. What you can do is create a
class, for example Action, that has an execute method. You then
have an array of Action objects which you can call execute on.
--sami
|From fgreco@lehman.com Wed Sep 20 15:28:27 1995
|Date: Wed, 20 Sep 95 10:26:05 EDT
|From: fgreco@lehman.com (Frank Greco)
|To: java-interest@java.Eng.Sun.COM
|Subject: method/fn ptrs?
|X-Info: To unsubscribe, send 'unsubscribe' to java-interest-request@java.sun.com
|
|
|Ok... how does one do the equivalent of fn-ptrs in Java?
|
|I need to save an array of ptrs-to-methods, or whatever
|the equivalent is.... am I thinking C-ish too much here?
|
|Thanks,
|
|Frank G.
|-
|Note to Sun employees: this is an EXTERNAL mailing list!
|Info: send 'help' to java-interest-request@java.sun.com
|
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com