Schematic Connection (metaclass)

From The Foundry MODO SDK wiki
Revision as of 07:30, 18 November 2017 by Cgolchert (Talk | contribs) (Created page with "<syntaxhighlight lang="cpp"> void get_list ( CLxUser_Item &item) LXx_OVERRIDE { for (i = 0; i < item-count; i++) add_item (item-list[i]); }</syntaxhighlight> Si...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
		void
	get_list (
		CLxUser_Item		&item)		LXx_OVERRIDE
	{
		for (i = 0; i < item-count; i++)
			add_item (item-list[i]);
	}


Since this is documentation it is a little odd to add some things like actual code for a loop but not define any of the contents of the loop. The int i is never defined, should it really be less than "item minus count"? Same for "item-list[i]" I don't think you can actually subtract an array from a CLxUser_Item, can you?