Skip to content

Commit a957eef

Browse files
committed
Show BUILDALL example returning built object
"It doesn't seem clear from the documentation that returning from BUILDALL would matter." See http://www.perlmonks.org/?node_id=1163681
1 parent 0cd4571 commit a957eef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/Language/objects.pod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,8 @@ class MyClass {
482482
callsame; # call the parent classes (or default) BUILDALL
483483
484484
# you can do final checks here.
485+
486+
self # return the fully built object
485487
}
486488
}
487489
=end code

0 commit comments

Comments
 (0)