[plt-scheme] Cleaner callback

From: Paulo J. Matos (pocm at mega.ist.utl.pt)
Date: Sun Sep 8 21:53:51 EDT 2002

Hi all,

Sometimes we just don't need any callback function, I usually
make them return null since they need to exist:
 (instantiate button% ()
      (label "Money comes and goes...")
      (parent statframe)
      (callback (lambda (button event) null)))

for example...

is there any cleaner way?

Best regards,

-- 
Paulo J. Matos : pocm(_at_)mega.ist.utl.pt
Instituto Superior Tecnico - Lisbon    
Software & Computer Engineering - A.I.
 - > http://mega.ist.utl.pt/~pocm 
 ---	
	Yes, God had a deadline...
		So, He wrote it all in Lisp!




Posted on the users mailing list.