To me current large DO CASE statement seems equivalent to
this single function call:

::pPtr := hb_ExecFromArray( @qt_*(), hb_AParam() )

It will pass through the number of parameters received.

Brgds,
Viktor

On 2009.07.07., at 11:14, Pritpal Bedi wrote:


Hi


Viktor Szakáts wrote:

Can't these long DO CASE statements be replaced
with HB_EXECFROMARRAY() (or some similar) function?

At the same time it would add automatic support for
unlimited number of parameters.


If I am not missing something, that is not the solution.
Examine, corresponding .cpp constructor function.
I need to know in advance exactly how many parameters
are passed so that I could overload the C function appropriately.
Perhaps Przemek may shed more light on the subject.

Still this is not a complete implementation in cases where
only one argument of same type ( from prg - a pointer ) is
passed to .cpp where it is treated differently depending on the
context. I am trying to find a way, though.

Regards
Pritpal Bedi

--
View this message in context: 
http://www.nabble.com/SF.net-SVN%3A-harbour-project%3A-11654--trunk-harbour-tp24368969p24369665.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to