| Anonymous | Login | Signup for a new account | 02-09-2010 12:31 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 | |||||||
| 0004996 | [Squeak] Kernel | minor | always | 09-18-06 21:55 | 09-19-09 22:26 | |||||||
| Reporter | Hans-Martin | View Status | public | |||||||||
| Assigned To | ||||||||||||
| Priority | normal | Resolution | open | |||||||||
| Status | feedback | Product Version | 3.8 | |||||||||
| Summary | 0004996: printStringRadix: includes the radix only if decimal | |||||||||||
| Description |
The interaction between printStringRadix: (which adds the 10r for decimal numbers only) and printStringBase: which does not add a radix designator at all) leads to pretty inconsistent behavior: (100 printStringRadix: 10) = '10r100' (100 printStringRadix: 16) = '64' ANSI is a bit difficult to read regarding the expected behavior of printStringRadix:, but I understand it as stating that the output is expected to be in the format which would be used after a radix specifier: > The sequence of characters must be recognizable using the > radixDigits production of the Smalltalk Lexical Grammar as if > the numeric value of the radixSpecifier was base. So the current printStringBase: behaves exactly as ANSI printStringRadix: should do. |
|||||||||||
| Additional Information | ||||||||||||
| Attached Files | ||||||||||||
|
|
||||||||||||
| Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
52 total queries executed. 37 unique queries executed. |