Functions Overload

rmarrugo

New Member
Hello everyone,

I wonder if we can make overloaded procedures or function in Progress 4GL 9.1E.

Thank you in advance.
 

tamhas

ProgressTalk.com Sponsor
If you want overloading, I would look to 10.1A and beyond. Method overloading in classes is not there in 10.1A, but I don't think it will be long before it gets added. The only way you can do this sort of thing in 9.1 is kludgy. The one possible exception to this is using super procedures, but that would require you loading the right super procedure for the need ... like I said, kludgy.
 

Steve McKean

New Member
You cannot overload functions in 9.1 but you CAN overload procedures providing they are in a super procedure and have the same signature.

Functions can't be overloaded but can be used in super procedures and making the call in your program very easy. To use them you use the proto-type with "in super", e.g.

function myfunction returns logical (input h as handle) in super.
 
Top