function myFunction( ... )
myOtherFunction( ... )
return nil
or
function myFunction( param1, param2, ... )
myOtherFunction( param1, ... )
return nil
I know this is possible with hb_aParams() but I think that is but
practical and but elegant
Si lo que pides es lo que me imagino, yo lo hago asi (viva el preprocesador)
#Define PARAMETROS_ xPar1, xPar2, xPar3, xPar4, xPar5, xPar6, xPar7, xPar8,
xPar9
FUNCTION Fun1(PARAMETROS_)
Fun2(PARAMETROS_)
RETURN NIL
FUNCTION Fun2(PARAMETROS_)
RETURN NIL
Saludos
Quique escribió en mensaje
<144cb854-13e3-420b...@y38g2000hsy.googlegroups.com>...
Lo que dices, que es lo mismo que dije yo, si se puede hacer con
xharbour, estos serían los 2 ejemplos que puse, pero ahora en
xharbour, fijate la difrencia y digamos un poco mas de complejidad,
principalmente en el segundo ejemplo
function myFunction( ... )
myOtherFunction( hb_aParams() )
return nil
y
function myFunction( ... )
local aParams := hb_aParams()
aDel( aParams, 2, .t. )
execFromArray( @myOtherFunction(), aParams )
return nil
function myFunction( ... )
hb_execFromArray( @myOtherFunction, hb_aParams() )
return nil
y
function myFunction( ... )
local aParams := hb_aParams()
aDel( aParams, 2, .t. )
hb_execFromArray( @myOtherFunction(), aParams )
return nil