Pointer to functions (feature request)

Post Reply
MLS_ADMIN
Posts: 2
Joined: Tue May 08, 2007 1:23 pm

Pointer to functions (feature request)

Post by MLS_ADMIN »

If it doesn't already exist it would be nice to be able to do something like this:

<call $functionname var1 var2 ...>

rather than:

<switch $functionname>
<case "dothis><dothis var1 var2>
<case "dothat><dothat var1 var2>
...
</switch>

Am I correct that this feature doesn't currently exist?

Thanks,

Aaron
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Pointer to functions (feature request)

Post by mark »

User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Pointer to functions (feature request)

Post by John »

If you have validated the $functionname argument somehow you could use the SANDCALL feature, e.g.

<fmtcp sandcall $functionname $functionname>
<sb>$functionname</sb>

to call the function, although with no arguments.
John Turnbull
Thunderstone Software
MLS_ADMIN
Posts: 2
Joined: Tue May 08, 2007 1:23 pm

Pointer to functions (feature request)

Post by MLS_ADMIN »

That might work.

Thanks.
Post Reply