Optional Parameters Anywhere.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

freak wrote:
Dare2 wrote:

Code: Select all

myProc(1,,2)
That just looks ugly :P

Code: Select all

Procedure Test(ThirdFile.s, FirstFile.s = "", SecondFile.s = "")
Looks ugly too :wink:
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

You can specify other values than only blank one, so it's not exactly the same purpose. And no, it's not ugly ;).
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Heh, I meant in the naming and placement. By default I initialize all strings as empty .. I guess a left over from C# scripting :)
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

A bulldozer also looks ugly, but it does the job! :)

We having a beauty parade here? :P :D
@}--`--,-- A rose by any other name ..
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

I'll post mine if you'll post yours ;)
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Anyway, Order is ugly?
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

:)

Centerfold feature of the month or not, this is a valid wish,,,,, methinks!

Code: Select all

DippedOnTheLooks(but, , what, a, Great, personality)
@}--`--,-- A rose by any other name ..
Post Reply