[Implemented] Catch wrong argument count in interface method

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

[Implemented] Catch wrong argument count in interface method

Post by traumatic »

Code: Select all

Interface IBAR
  bar(a.l, b.l)
EndInterface

foo.IBAR

foo\bar(0)      ; syntax error
foo\bar(0,0,0)  ; garbage to the end of line
foo\bar(0,0)    ; ok ;)
Nothing I'd consider a real bug, that's why I'm posting this here.
Good programmers don't comment their code. It was hard to write, should be hard to read.
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

Post by Inner »

what your really asking for it optional arguments to procedures / interface methods. :lol:
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

It is a bug in fact so i will move the topic and say: 'It's fixed' ;). About optional parameters it will come with the optional parameter for procedures.
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Inner, hehe, wasn't aware of that, thanks for telling me! :lol:

Thanks Fred! :)
Good programmers don't comment their code. It was hard to write, should be hard to read.
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Fred wrote:It is a bug in fact so i will move the topic and say: 'It's fixed' ;). About optional parameters it will come with the optional parameter for procedures.
Yiiiiiiiiiiiiiiiiippppy !!!
Post Reply