jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
groovy
  • groovy
  • GROOVY-9

sequences

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Task Task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.0-beta-3
  • Component/s: ast builder, parser
  • Labels:
    None
  • Number of attachments :
    0

Description

support for sequences such as

sequence Foo

{ int x, String y, Bar b }

;
foo = new Foo(12, "hello", new Bar());
assert foo[0] == 12;
assert foo.x == 12;
foo.y = "hey";

they are kinda like simple classes where the data is stored as a tuple but they can have optional type restrictions and also possible named values.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
james strachan added a comment - 10/Oct/03 2:57 AM

Actually lets just use the class syntax for now...

class Foo {
String x
Address bar
}

Show
james strachan added a comment - 10/Oct/03 2:57 AM Actually lets just use the class syntax for now... class Foo { String x Address bar }

People

  • Assignee:
    bob mcwhirter
    Reporter:
    bob mcwhirter
Vote (0)
Watch (0)

Dates

  • Created:
    25/Sep/03 5:52 PM
    Updated:
    10/Oct/03 2:57 AM
    Resolved:
    10/Oct/03 2:57 AM

Time Tracking

Estimated:
4h
Original Estimate - 4 hours
Remaining:
4h
Remaining Estimate - 4 hours
Logged:
Not Specified
Time Spent - Not Specified
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.