Hi, I am experimenting with arrays in C components. I have looked at the documentation on arrays and see that there are two types of arrays. It looks like GB.NewArray simply reserves memory and GB.Array.New creates a new GAMBAS array object.
My question is: When is it appropriate to use each of these types. To me it seems that GB>NewArray would be used only for temporary memory allocation as in a function and therefore should be freed with GB.FreeArray before exiting the function. Also, that GB.ArrayNew would be used anytime you need a persistent array such as returning an array object or using the array as a class member/property. Is this correct? Thanks for the clarification! -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user