History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-265
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Rodrigo B. de Oliveira
Reporter: Doug H
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

Named argument support for IQuackFu

Created: 11/Mar/05 05:56 PM   Updated: 27/Sep/06 01:52 PM
Component/s: Compiler
Affects Version/s: None
Fix Version/s: 0.7.7

Time Tracking:
Not Specified

Issue Links:
Duplicate
 


 Description  « Hide

Building from the Expando IQuackFu example here:
http://svn.boo.codehaus.org/trunk/tests/testcases/integration/duck-5.boo?view=auto

This code gives an error at the first named argument:

point as duck = Expando(datum:2,squared:2*2,coord:5)
print point.datum, point.squared, point.coord

#should work the same as this:

  1. point as duck = Expando()
  2. point.datum = 2
  3. point.squared = 2*2
  4. point.coord = 5
  5. print point.datum, point.squared, point.coord

With regular classes this works fine:
class TestClass:
public datum as int
public squared as int
public coord as int

point as duck = TestClass(datum:2,squared:2*2,coord:5)
print point.datum, point.squared, point.coord



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Doug H - 30/May/05 11:48 PM
Could not fix this.