JDK-4193581 : Pointer to function
  • Type: Enhancement
  • Component: specification
  • Sub-Component: language
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1998-11-30
  • Updated: 2006-11-14
  • Resolved: 2006-11-14
Related Reports
Duplicate :  
Description
Name: gb36485			Date: 11/30/98


It would be very nice if you could add support
for pointers to functions (or references to 
functions, if you prefer). For implementing things
such as menus, such a functionality is extremely
convenient, and makes writing a menu for any 
decent sized application actually quite realistic.
(Review ID: 40114)
======================================================================

Comments
EVALUATION This is really a request for method references or, as the previous Evaluation said, closures. I can't find any requests older than this one for closures, so am marking it as a duplicate of a fairly recent request.
14-11-2006

WORK AROUND Name: gb36485 Date: 11/30/98 If you have a really fast machine (i.e. you aren't writing for the consumer market), you could use introspection, and provide a string with the name of the function that needs to be called. ======================================================================
11-06-2004

EVALUATION I interpret this as a request for closures (though the submiter might be satisfied with method references). Those would be a good idea. gilad.bracha@eng 1998-12-01
01-12-1998