Skip to content

Commit 49c25bf

Browse files
committed
subscripts also map Nil --> Nil
This used to fall out of the fact that subscripts were methods, but they aren't anymore, so we have to make this explicit.
1 parent bbebb37 commit 49c25bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

S02-bits.pod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Synopsis 2: Bits and Pieces
1313

1414
Created: 10 Aug 2004
1515

16-
Last Modified: 2 Oct 2013
17-
Version: 278
16+
Last Modified: 28 Dec 2013
17+
Version: 279
1818

1919
This document summarizes Apocalypse 2, which covers small-scale
2020
lexical items and typological issues. (These Synopses also contain
@@ -507,7 +507,7 @@ C<Nil.gist> return C<'Nil'>. C<Nil.Stringy> and C<Nil.Str> throw a resumable wa
507507
that returns a value of C<''> on resumption. C<Nil.Numeric> likewise throws
508508
a resumable warning that returns 0 on resumption. Any undefined method call
509509
on C<Nil> returns C<Nil>, so that C<Nil> propagates down method
510-
call chains.
510+
call chains. Likewise any subscripting operation on C<Nil> returns C<Nil>.
511511

512512
Assigning C<Nil> to any scalar container causes the container to
513513
throw out any contents and restore itself to an uninitialized state

0 commit comments

Comments
 (0)