|
[jira] Created: (BOO-250) builtin primitives (double, float) as first class: msg#00022lang.boo.devel
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/BOO-250 Here is an overview of the issue: --------------------------------------------------------------------- Key: BOO-250 Summary: builtin primitives (double, float) as first class fuctions fail miserably. Type: Bug Status: Unassigned Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: Boo Components: Compiler Versions: 0.5 Assignee: Reporter: Arron Washington Created: Fri, 11 Feb 2005 3:21 PM Updated: Fri, 11 Feb 2005 3:21 PM Environment: Latest SVN. Description: The following code fails: points = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] index = 0 Step = def(increment as int): numbers = points[index:index + increment] index += increment return array(double, map(numbers, double.Parse)) //can't parse this line. However, this version succedes: points = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] index = 0 jaz = def(var as string): return double.Parse(var) Step = def(increment as int): numbers = points[index:index + increment] index += increment return array(double, map(numbers, {var as string| return double.Parse(var)})) //Works perfectly. Anonymous functions (blocks?) and functions in general work. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [jira] Created: (BOO-249) A new binary release., jira-yCVjj/EcxBJg9hUCZPvPmw |
|---|---|
| Next by Date: | [jira] Created: (BOO-251) Local variables not falling out of scope properly., jira-yCVjj/EcxBJg9hUCZPvPmw |
| Previous by Thread: | [jira] Created: (BOO-249) A new binary release., jira-yCVjj/EcxBJg9hUCZPvPmw |
| Next by Thread: | [jira] Created: (BOO-251) Local variables not falling out of scope properly., jira-yCVjj/EcxBJg9hUCZPvPmw |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |