[squeak-dev] Re: The Trunk: Collections-ul.611.mcz
Levente Uzonyi
leves at elte.hu
Sun Apr 5 20:26:56 UTC 2015
Input that one would normally consider invalid is not accepted anymore.
The following expressions raise an error instead of returning 'x':
'{1 }' format: { 'x' }.
'{1abc}' format: { 'x' }.
'{ 1}' format: { 'x' }.
'{ 1.0 }' format: { 'x' }.
'{1' format: { 'x' }.
'{1 foo' format: { 'x' }.
The following expressions raise an error, instead of writing an error
message into the return value:
'foo {2} bar {1}' format: { 'x' }. "instead of 'foo [subscript is out of bounds: 2] bar x'"
'foo {0} bar {1}' format: { 'x' }. "instead of 'foo [invalid subscript: 0] bar x'"
'{-0}' format: { 'x' }. "instead of '[invalid subscript: -0]'"
Levente
On Sun, 5 Apr 2015, Marcel Taeumel wrote:
> What means "stricter"? Can you elaborate on what is not possible anymore but
> was?
>
> Best,
> Marcel
>
>
>
> --
> View this message in context: http://forum.world.st/The-Trunk-Collections-ul-611-mcz-tp4817669p4817690.html
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>
>
More information about the Squeak-dev
mailing list
|