Please avoid Array, List, etc as input parameters for native

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:

Please avoid Array, List, etc as input parameters for native

Post by Psychophanta »

Please avoid Array, List, etc as input parameters for native functions.
Main reason: It cuts the versatility when using the function.


Examples are: Set/GetMeshData() functions , which use an array as input parameter.
The use a pointer for the vertex sequence instead an Array would make things easier and more versatile for the programmer.
If a pointer is used as input parameter for the funcion there is always the possibility to pass an array, but if using an array as input parameter, then the possibilities are cutted off.


Thanks!!
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Re: Please avoid Array, List, etc as input parameters for na

Post by Psychophanta »

Is there any problem for this?
If yes, then please comment about it!

Thanks :)
http://www.zeitgeistmovie.com

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