| « Un nuovo inizio | Back in business » |
Aug
20
Teorema Gli oggetti sono le chiusure dei poveri.
Dimostrazione costruiamo un oggetto Counter in Scheme
Scheme:
| (define (Counter initial-value) | |
| (let ([value initial-value]) | |
| (list | |
| (lambda (x) | |
| (set! value (- value x))) | |
| (lambda (x) | |
| (set! value (+ value x))) | |
| (lambda () | |
| value)))) |
C.V.D.
Deprecated: Assigning the return value of new by reference is deprecated in /home/mhd-01/www.kojia.net/htdocs/uranio/skins/glossyblue/_item_feedback.inc.php on line 152
Deprecated: Assigning the return value of new by reference is deprecated in /home/mhd-01/www.kojia.net/htdocs/uranio/skins/glossyblue/_item_feedback.inc.php on line 286
Deprecated: Assigning the return value of new by reference is deprecated in /home/mhd-01/www.kojia.net/htdocs/uranio/skins/glossyblue/_item_feedback.inc.php on line 303
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
No feedback yet
Comments are not allowed from anonymous visitors.
Recent comments