|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
operator overloadinghi,
op_Multiplywhy are some operators verbs and some nouns? shouldn't this be consistent? like op_Add and op_Multiply or op_Addition and op_Multiplication? just curious... :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: operator overloadingOn Sun, Sep 20, 2009 at 1:08 PM, horace <horace3d@...> wrote: Actually, I like the C# syntax more so it can be like, hi,op_Multiplywhy are some operators verbs and some nouns? shouldn't this be consistent? static def operator *(x as myNum, j as int): --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: operator overloadingOn Sun, Sep 20, 2009 at 4:38 AM, horace <horace3d@...> wrote: > hi, > > op_Multiply > op_Addition > > why are some operators verbs and some nouns? Compatibility with C#. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: operator overloadingOn Sun, Sep 20, 2009 at 10:43 PM, Rodrigo B. de Oliveira <rodrigobamboo@...> wrote:
how does this affect c# compatibility? isn't the c# syntax "operator *" like in the previous example by sandeep pai? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: operator overloadingOn Mon, Sep 21, 2009 at 5:33 PM, horace <horace3d@...> wrote:
Rodrigo meant CLR compatibility. Operator overloadings are actually special name methods like op_Multiply/op_Addition in an assembly metadata. csc/gmcs compiles the C# syntax (using the actual operator symbols) to these methods. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Boo Programming Language" group. To post to this group, send email to boolang@... To unsubscribe from this group, send email to boolang+unsubscribe@... For more options, visit this group at http://groups.google.com/group/boolang?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |