|
Java Scripting Languages
»
Scala Programming Language
»
Scala
[scala] Equality for defs
View:
Threaded
List (by date)
Classic
Old framed views
5 Messages —
Rating Filter:
0
1
2
3
4
5
Alert me
samreid
–
[scala] Equality for defs
samreid
[scala] Equality for defs -
Scala Community, I'm confused by the behavior in this scala snippet: object TestRemove { def main(args:...
Loading...
Reply
More
Rate this Message:
Reply to author
Delete
Print
Show in classic view
Show in list view (by date)
Permalink
‹
Colin Bullock
Colin Bullock
Each time you reference updateDef it's being coerced to function instance, and you're getting a new instance every...
Loading...
Reply
More
Rate this Message:
Reply to author
Delete
Print
Show in classic view
Show in list view (by date)
Permalink
‹
samreid
samreid
Colin, Thanks for helping me to understand the cause of this behavior. Is this caused by the...
Loading...
Reply
More
Rate this Message:
Reply to author
Delete
Print
Show in classic view
Show in list view (by date)
Permalink
‹
Erik Engbrecht
Erik Engbrecht
It's a idiosyncrasy of Scala. IIRC defs are methods, not functions. Methods are not objects. Functions are. Scala...
Loading...
Reply
More
Rate this Message:
Reply to author
Delete
Print
Show in classic view
Show in list view (by date)
Permalink
‹
Colin Bullock
Colin Bullock
On Mon, May 4, 2009 at 12:04 PM, Erik Engbrecht <erik.engbrecht@...wrote: > It's a idiosyncrasy of Scala. ...
Loading...
Reply
More
Rate this Message:
Reply to author
Delete
Print
Show in classic view
Show in list view (by date)
Permalink
Free embeddable forum
powered by
Nabble
Forum Help