| Anonymous | Login | Signup for a new account | 02-09-2010 14:32 UTC |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| 0005793 | [Squeak] ST80 | minor | always | 01-20-07 05:57 | 04-03-08 20:38 | |||||||
| Reporter | gilad | View Status | public | |||||||||
| Assigned To | ||||||||||||
| Priority | normal | Resolution | open | |||||||||
| Status | new | Product Version | 3.8 | |||||||||
| Summary | 0005793: Empty blocks do not conform to Blue Book | |||||||||||
| Description |
An empty block is defined to return nil. In Squeak, it returns its last argument. This makes very little sense, and is different from other Smalltalks. I suppose you dare not change it, as who knows what code relies on this behavior. To confirm this, define the following method in any class emptyBlock ^[:x :y :z | ] value:1 value: 2 value: 3 Then create an instance and invoke it. It evaluates to 3 instead of nil. |
|||||||||||
| Additional Information | ||||||||||||
| Attached Files |
|
|||||||||||
|
|
||||||||||||
| Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
47 total queries executed. 30 unique queries executed. |