[DGD] Re: My idea for the DGD driver - validate
Par Winzell
zell at skotos.net
Fri Feb 13 00:30:45 CET 2004
Robert Forshaw wrote:
> OK, I've run into a problem with overriding call_other. When calling the
> original function, how do I pass on the original last argument? Since
> the ... operator has converted it into an array, doing ::call_other(obj,
> function, args) will pass on args as an array, so the function will
> convert that into an array containing an array, which is most likely not
> what the function is expecting to receive! Is there a way around this?
The ... will also convert an array to a bunch of parameters, e.g.
mixed call_other(mixed ob, string fun, mixed args...) {
/* do stuff */
return ::call_other(ob, fun, args...);
}
Zell
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list