[ nice-Bugs-1427169 ] Missing get method for slicing

"SourceForge.net" <[email protected]> Tue, 07 Feb 2006 23:42:25 -0800
Newsgroups gmane.comp.lang.nice.devel
Message-ID <[email protected]>
Bugs item #1427169, was opened at 2006-02-07 23:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1427169&group_id=12788

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Missing get method for slicing

Initial Comment:
The release notes for 0.9.9 claim that one can slice
lists. However, there seems to be no get method in the
library to actually support this.

Example:

package slicing;

void main (String[] args) {
  let array = [0, 1, 2, 3, 4, 5];
  let slice = array[2..4];
  for (e: slice)
    println(e);
}

This results in:
~/programming/nice/slicing/slicing.nice: line 5, column 20:
No possible call for get.
Arguments: (t66[], nice.lang.Range<nice.lang.int>)
Possibilities:
nice.lang.boolean get(nice.lang.long x,nice.lang.int bit)
nice.lang.double get(nice.lang.double[],nice.lang.int)
nice.lang.float get(nice.lang.float[],nice.lang.int)
nice.lang.char get(nice.lang.char[],nice.lang.int)
nice.lang.long get(nice.lang.long[],nice.lang.int)
nice.lang.int get(nice.lang.int[],nice.lang.int)
nice.lang.short get(nice.lang.short[],nice.lang.int)
nice.lang.byte get(nice.lang.byte[],nice.lang.int)
nice.lang.boolean get(nice.lang.boolean[],nice.lang.int)
<T> T get(T[],nice.lang.int)
Object get(nice.lang.Dictionary<?, ?>, ?Object)
nice.lang.char get(java.lang.String s,nice.lang.int index)
<K, K0, V0, V | K <: K0, V <: ?V0> ?V0
get(nice.lang.Map<K, V>,K0)
<T> T get(nice.lang.List<T>,nice.lang.int)
<T, V> V get(java.lang.reflect.Field,T)
compilation failed with 1 error

Daniel Dawson
Email: ddawson at icehouse dot net


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1427169&group_id=12788


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642