Home Dashboard Directory Help
Search

Scalar indexing out of bounds returns nothing instead of $null by Derp McDerp


Status: 

Active


1
0
Sign in
to vote
Type: Bug
ID: 808144
Opened: 11/8/2013 7:44:33 PM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

v3 added indexing on scalars but indexing out of bounds returns nothing instead of $null:

(1)[10] |% { 'a' } { "b$_" } { 'c' } # a c
@(1)[10] |% { 'a' } { "b$_" } { 'c' } # a b c
@{a=1}['b'] |% { 'a' } { "b$_" } { 'c' } # a b c
@{a=1}.b |% { 'a' } { "b$_" } { 'c' } # a b c

Which is inconsistent with the rest of the language.
Details
Sign in to post a comment.
Sign in to post a workaround.