Forums

Operator overload

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

Operator overload

Postby Gameday » Mon May 03, 2010 7:53 am

Hi guys!

I'm sorry if my searching skills suck, but I tried searching for Operator overloading and all I could find on the forums was an example of using compareTo. Is there a page that specifies which operators can be overloaded?
Gameday
 
Posts: 27

Re: Operator overload

Postby Charles » Mon May 03, 2010 9:10 am

Not yet. This topic just came up. See viewtopic.php?f=4&t=598#p3044

Here are the tickets:
-- http://cobra-language.com/trac/cobra/ticket/70
-- http://cobra-language.com/trac/cobra/ticket/69

I forgot to mention that if you implement .compareTo, then Cobra will, in fact, use it for the comparison operators. Same with .equals and == and <>.

But for the mathematical operators, we don't have those yet.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 71 guests

cron