X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlobj.pod;h=81c6c962468b67fa87f32cd3fc5e2cf1f7adc1c5;hb=4d9142afa100a96f07b67cd4b087273df8c60543;hp=59c6f1244cecb1a71585ac0583c5bff95196a717;hpb=cb1a09d0194fed9b905df7b04a4bc031d354609d;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlobj.pod b/pod/perlobj.pod index 59c6f12..81c6c96 100644 --- a/pod/perlobj.pod +++ b/pod/perlobj.pod @@ -76,8 +76,8 @@ so that your constructors may be inherited: return $self; } -Or if you expect people to call not just Cnew()> but also -C<$obj->new()>, then use something like this. The initialize() +Or if you expect people to call not just Cnew()> but also +C<$obj-Enew()>, then use something like this. The initialize() method used will be of whatever $class we blessed the object into: @@ -203,7 +203,7 @@ indirect object slot: display {find Critter "Fred"} 'Height', 'Weight'; -For C++ fans, there's also a syntax using -> notation that does exactly +For C++ fans, there's also a syntax using -E notation that does exactly the same thing. The parentheses are required if there are any arguments. $fred = Critter->find("Fred"); @@ -287,7 +287,7 @@ automatically when the current object is freed. An indirect object is limited to a name, a scalar variable, or a block, because it would have to do too much lookahead otherwise, just like any -other postfix dereference in the language. The left side of -> is not so +other postfix dereference in the language. The left side of -E is not so limited, because it's an infix operator, not a postfix operator. That means that below, A and B are equivalent to each other, and C and D