1. [DEVS] Optional Parameters for Funcs Called with Routine ID

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?

new topic     » topic index » view message » categorize

2. Re: [DEVS] Optional Parameters for Funcs Called with Routine ID

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu