procedure overloading

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
seeker
User
User
Posts: 48
Joined: Fri Nov 01, 2013 2:08 am

procedure overloading

Post by seeker »

it would be nice to have procedure overloading. one wouldn't need to come up with stupid name for procedures that basically to do the same, but have a slightly different signature.


i am asking NOT for OOP here.
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: procedure overloading

Post by luis »

"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: procedure overloading

Post by Tenaja »

seeker wrote:...one wouldn't need to come up with stupid name...
Until this is implemented, you may consider using PB's naming method.
I agree this naming method may not be a perfect solution, however, it provides consistency and also avoids complications that overloading present.
PeekA
PeekB
PeekC
PeekD
PeekF
PeekI
PeekL
PeekQ
PeekS
PeekU
PeekW
PokeA
PokeB
PokeC
PokeD
PokeF
PokeI
PokeL
PokeQ
PokeS
PokeU
PokeW
Post Reply