do newlisp support some callback like method_missing?
Posted: Sat Aug 29, 2015 4:07 pm
Hi,
I am very new to newlisp and not sure if it's good to raise the question to this forum.It could be a very simple question ,but I can't find related part in manuals:
do newlisp support such callbacks (or event) like method_missing ?
------------------------------------------------------------------
For example:
when I invoke helloworld function which is not defined in Foo context
, then the Foo:method_missing will be called.
I am very new to newlisp and not sure if it's good to raise the question to this forum.It could be a very simple question ,but I can't find related part in manuals:
do newlisp support such callbacks (or event) like method_missing ?
------------------------------------------------------------------
For example:
Code: Select all
(new Class ‘Foo)
(define (Foo:method_missing methodname, args) (dosomthing))
(Foo:helloworld) ; method_missing is expected to be triggered.
, then the Foo:method_missing will be called.