Simple overloading

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Simple overloading

Post by Hroudtwolf »

Hi,

Just a little wish again.
My wish is an simple overloading for keywords per macro.

Code: Select all

Macro Repeat
   ; blablup
EndMacro
Macro End
   ; blablup
EndMacro
Best regards

Wolf
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Simple overloading

Post by PB »

What do you mean? To replace existing commands? It already does:

Code: Select all

Macro Repeat(ms)
  Sleep_(ms)
EndMacro

Debug "Sleeping for 1 second..."

Repeat(1000)

Debug "Done!"
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

He refers to PureBasic Keywords, not Commands like in your example :wink:
Check out OOP support for PB here!
Post Reply