In a view, I have to slice a collection that was passed directly via
propertybag (tried all types of lists).
if I do
firstBatch = similarProducts[0:6]
i get the CompilerError
Message:
Language feature still not implemented: 'complex slice for duck'.
then, I tried to
def getSlice(coll, sliceStart, sliceEnd):
if (coll.Count > sliceEnd):
sliceEnd = coll.Count
end
if sliceEnd < sliceStart:
return null
end
icoll = Boo.Lang.List()
for i in range(sliceStart, sliceEnd):
icoll.Add(coll[i])
end
return icoll
end
but it seems this triggers a MonoRailException
Message:
Parameter 'range' was not found!
I'd prefer to 'deduck' similarProducts and use the boo slice syntax,
but any help to make brail understand 'range' would be appreciated,
too!
--
Jan
___________________
[EMAIL PROTECTED]
www.limpens.com
+55 (11) 3082-1087
+55 (11) 3097-8339
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---