add(a,b) and a.add(b)

Posted by hero on Stack Overflow See other posts from Stack Overflow or by hero
Published on 2010-04-22T11:45:33Z Indexed on 2010/04/22 11:53 UTC
Read the original article Hit count: 233

Filed under:
|
|

how can i transform a method (that performs a+b and returns the result) from add(a,b) to a.add(b)?
i read this somewhere and i can't remember what is the technique called...
does it depends on the language?

is this possible in javascript?

© Stack Overflow or respective owner

Related posts about c

    Related posts about c#