If I have var foo : [Int], how can I get that type, Int? I need to get the size 
of each element. Alternatively, I need the size of the array in bytes. I'd like 
to write the code generically. E.g., in C, I could do this:

int myArray[] = ...;
sizeof(*myArray)

Even if myArray is empty or NULL.

-- 
Rick Mann
rm...@latencyzero.com



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to