Forums

Basic support for cues

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Basic support for cues

Postby Charles » Mon Feb 09, 2009 6:22 am

I haven't had a chance to work on cues in earnest, but I snuck in support for using "cue" instead of "def" on methods like "init" and "equals". So for example:
class Point

cue init
.init(0, 0)

cue init(x as int, y as int)
_x, _y = x, y

This gets us closer to the final form of Cobra syntax and the 0.9 release. All the Samples and HowTo's are updated in the repository.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Return to Discussion

Who is online

Users browsing this forum: No registered users and 38 guests