[scala] Equality for defs

View: Old framed views
5 Messages — Rating Filter:   Alert me  
[scala] Equality for defs - Scala Community, I'm confused by the behavior in this scala snippet: object TestRemove { def main(args:... Loading...
Each time you reference updateDef it's being coerced to function instance, and you're getting a new instance every... Loading...
Colin, Thanks for helping me to understand the cause of this behavior.  Is this caused by the... Loading...
It's a idiosyncrasy of Scala. IIRC defs are methods, not functions. Methods are not objects. Functions are. Scala... Loading...
On Mon, May 4, 2009 at 12:04 PM, Erik Engbrecht <erik.engbrecht@...wrote: > It's a idiosyncrasy of Scala. ... Loading...