Revision 26069

Date:
2009/04/04 09:32:02
Author:
masak
Revision Log:
[S09] added table of operations that autovivify
Files:

Legend:

 
Added
 
Removed
 
Modified
  • docs/Perl6/Spec/S09-data.pod

     
    1230 1230 autovivification is defined in terms of protoobjects rather than failure,
    1231 1231 it still works under "use fatal".
    1232 1232
    1233 This table solidifies the intuition that an operation pertaining to some data
    1234 structure causes the protoobject to autivivify to such an object:
    1235
    1236 operation autovivifies to
    1237 ========= ===============
    1238 push, unshift, .[] Array
    1239 .{}, .<> Hash
    1240
    1241 In addition to the above data structures autovivifying, C<++> and C<--> will
    1242 cause an C<Int> to appear, C<~=> will create a C<Str> etc; but these are
    1243 natural consequences of the operators working on C<Failure>, qualitatively
    1244 different from autovivifying containers.
    1245
    1233 1246 The type of the protoobject returned by a non-successful lookup should
    1234 1247 be identical to the type that would be returned for a successful lookup.
    1235 1248