slicing in generic lists

View: New views
3 Messages — Rating Filter:   Alert me  

slicing in generic lists

by Mad-12 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hi
today i tried sometihng like this:

headersize as int
tres as List [of String]
[...]
tdic[idlineVal].Extend(tres[headersize:])

and i get the following error:
Language feature still not implemented: 'complex slicing for anything
but lists, arrays and strings'. (BCE0031)

it works if tres if a Boo.Lang.List but  in my eyes thats no great
solution.
so how could i get this working? or is there anoter nice way to extend
a generic list with a part of an other list?

greatz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Boo Programming Language" group.
To post to this group, send email to boolang@...
To unsubscribe from this group, send email to boolang+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/boolang?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: slicing in generic lists

by Mad-12 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


seems like GetRange does what i need, but why is slicing not allowed?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Boo Programming Language" group.
To post to this group, send email to boolang@...
To unsubscribe from this group, send email to boolang+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/boolang?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: slicing in generic lists

by Rodrigo B. de Oliveira :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Wed, Oct 7, 2009 at 10:36 AM, Mad <dajo.mail@...> wrote:
>
> seems like GetRange does what i need, but why is slicing not allowed?

It's a bug.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Boo Programming Language" group.
To post to this group, send email to boolang@...
To unsubscribe from this group, send email to boolang+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/boolang?hl=en
-~----------~----~----~----~------~----~------~--~---