View Single Post
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 06-11-2013 , 08:34   Re: SourceModGen - Data modeling tool
Reply With Quote #8

No, i am just pointing out how odd and inefficient dynamic array models are in pawn.
But sure, you don't need these type functions, esp realloc, you can just allocate a new array of the new size, copy the contents, and close the old handle, and return the new handle. You need more functions to do it.

Also, there is no tag type associated to the array, i think, so you can't initialize it on creation. This is a bit annoying.

Presumably array creation will succeed? There is no way of knowing i think, because it doesn't return something like null ptr on failure.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline