-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|647|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Variables


 
flying_cucco
Created : 23 April 2008
Edited : 23 April 2008
Language : Cobra

Nested Types Example



How to make types-within-types in Cobra -- this took me a while to figure out. Hopefully self explanatory if you are familiar with how the types work, with lists and pointers.


 

Comments


Wednesday, 23 April 2008, 13:30
flying_cucco
Of course, they needn't be different types, you can nest the same type


Wednesday, 23 April 2008, 16:34
codingmonkey
Very interesting.
Does Cobra utilize OOP?
Monday, 12 May 2008, 13:44
HoboBen
Thanks cucco!

I keep forgetting the exact syntax, and I must have checked back to this page like a million times by now.

Bookmarked!