1. [DEVS] Optional Parameters for Funcs Called with Routine ID
- Posted by euphoric (admin) Sep 20, 2008
- 850 views
I have a function with an optional parameter that I'm calling via call_func(). I'm not providing the optional parameter and I'm getting this error:
c:/htdocs/eu40/bbcmf-system/site_db.e:37 in function site_call() call to vmail_send() via routine-id should pass 2 arguments, not 1
Should optional parameters work with call_func/proc?
2. Re: [DEVS] Optional Parameters for Funcs Called with Routine ID
- Posted by mattlewis (admin) Sep 20, 2008
- 875 views
euphoric said...
Should optional parameters work with call_func/proc?
No. Basically, that's all managed by the parser. The back end doesn't really know about optional parameters, and that's where the call_func/proc magic happens, since it's not known until runtime which routine you're calling.
Matt