Changes between Version 4 and Version 5 of Language/Overview/DestructiveUpdate
- Timestamp:
- 08/26/10 01:48:09 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Language/Overview/DestructiveUpdate
v4 v5 37 37 {{{ 38 38 main () 39 = do point = Point 2.0 3.0 -- construct a new point39 = do point = Point 2.0 3.0 -- construct a new point 40 40 putStrLn $ show point -- prints '(2.0, 3.0)' 41 41 putStrLn $ show point.x -- prints '2.0'
