- Home /
Question by
jellyberg · Jun 21, 2013 at 03:12 PM ·
listsboolist of lists
Lists of lists in Boo gives error: "Type 'object' does not support slicing."
I have a list of lists like this:
test as List = [['1','2','3'], ['a','b','c'], ['do','re','mi'], ['x','y','z']]
If I add, for instance, this: Debug.Log(test[2])
It works fine, returning ['do','re','mi']
as I expect.
But, if I add this: Debug.Log(test[2][1])
it returns a compiler error: "Type 'object' does not support slicing."
And this applies to any time I try and access any indices of an inner list (eg. test[0][2]) in any way.
Does anyone know what I'm doing wrong? I know this would work in Python, I assumed the same logic for Boo. Please don't advise me to learn C# as that really doesn't solve my problem! Thanks in advance.
Comment