Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Java inline classes in lisp/clos
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 4th July 04:35
stefan arentz
External User
 
Posts: 1
Default Java inline classes in lisp/clos


I'm a lisp newbie so f****ve me for asking silly questions. Suppose I have
the following Java code:

public class IndexPage extends WebPage
{
public WebPage()
{
super();

add(new Label("title", "This is the title of the page"));

add(new Link("testLink")
{
public void onClick()
{
// Do something when the link is clicked
}
});
}
}

I'm mostly interested in the abstract Link#onClick which is inlined.

How would I translate that to lisp? What would that style of programming
look like in lisp or more specifically, clos.

S.
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666