pb4.30 - strange procedure decloration

Linux specific forum
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

pb4.30 - strange procedure decloration

Post by Inner »

Error: Line 12 - in included file '/mnt/media/Projects/rainbowplayer/includes/io.pb'
Line 12 - Syntax error in the procedure arguments.

Code: Select all

Procedure SearchDirectory(dir$,yourLinkedList.s(),pattern$="",recursive=1)
This worked pre-final, is there something I'm doing wrong?
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

Post by Inner »

Code: Select all

Newlist mylist.s()

Procedure Test(thislist.s())
EndProcedure

Test(mylist())
Okay not so strange seams we can't at the moment pass list types in this way to procedures, although oddly this worked in betas.
User avatar
IceSoft
Addict
Addict
Posts: 1698
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

Inner wrote:

Code: Select all

Newlist mylist.s()

Procedure Test(thislist.s())
EndProcedure

Test(mylist())
Okay not so strange seams we can't at the moment pass list types in this way to procedures, although oddly this worked in betas.
Correct is:
Procedure Test(List thislist.s())
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

Post by Inner »

IceSoft wrote:
Inner wrote:

Code: Select all

Newlist mylist.s()

Procedure Test(thislist.s())
EndProcedure

Test(mylist())
Okay not so strange seams we can't at the moment pass list types in this way to procedures, although oddly this worked in betas.
Correct is:
Procedure Test(List thislist.s())
ahh so it's been changed :)
Post Reply