Optional parameters in procedures

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Optional parameters in procedures

Post by Psychophanta »

Currently this can't be done:

Code: Select all

Procedure.f gg(a.f=12,b.f=13,c.f=14)
  ProcedureReturn a+b+c
EndProcedure

Debug gg(1,,2)
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

We had this discussion allready, and the result was: "waaay too ugly :P"
quidquid Latine dictum sit altum videtur
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

freak wrote:We had this discussion allready, and the result was: "waaay too ugly :P"
I sorry then. I found nothing about it.
However, think twice. Efficiency is more important than beauty :wink:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Yeah, don't we all love "efficient" girls?
Good programmers don't comment their code. It was hard to write, should be hard to read.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

traumatic wrote:Yeah, don't we all love "efficient" girls?
Yes, but only after thinking twice, hehehe
First time, only see beauty, and after that we miss efficiency :wink:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Post Reply