[Implemented] Array Arguments in Interface definitions

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
pcfreak
User
User
Posts: 75
Joined: Sat May 22, 2004 1:38 am

[Implemented] Array Arguments in Interface definitions

Post by pcfreak »

something like..

Code: Select all

Interface Test
 getArray(Array a.s(1))
EndInterface
at the moment this still returns in a syntax error, but it would be nice if it was possible, too. :wink:
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Array Arguments in Interface definitions

Post by netmaestro »

Since 4.50 you can now do this. Not directly but if you put your array, map or list inside a structure you can pass the structure pointer and it works.
BERESHEIT
Post Reply