  | |  | function with arguments as reference | function with arguments as reference 2004-02-26 - By Malte Schwerhoff
Back moins,
is it possible it create a reference to a function with arguments?
what i do now is: onSomeEvent = function () { trace ('onSomeEvent called'); };
and what i want to do is something like this: onSomeEvent = trace ('onSomeEvent called');
which of course doesn't work because it executes the function and stores the return-value in 'onSomeEvent'.
the first way works, but i don't like to create a function just to call another one...it hurts my coder-soul and it does not make up sexy source code ;)
thanks & doei, malte
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:105300 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |