Jeremy --

You have started a new thread by taking an existing message and replying
to it while merely changing the Subject: line.

That is bad, because it breaks threading.  Whenever you reply to a
message, your mail client generates a "References:" header that tells all
recipients to which posting(s) your posting refers.  A mail client uses
this information to build a "thread tree" of the postings so that it is
easy to see just how they relate to each other.

With your posting style you successfully torpedoed this useful feature;
your posting shows up within an existing thread even though it is
completely unrelated.

Always do a fresh post when you want to start a new thread.  That means
that you do not select any sort of "Reply" when you start your message.
You can save the list address in your address book (or equivalent) for
convenience.

...and then Jeremy Schroeder said...
% 
% Hey Group

Hi!


% 
% I am starting to write class and objects and came across some syntax 
% that I dont understand.
% 
% What does the ampersand do in the bottom example code, they both work.
% 
% $n1 = $num1 -> function();
% $n1 = & $num1 -> function();

1) Search the manual.

2) Assigning by reference, as compared to the default assigning by value,
means that the variable on the left of the '=' now points to the very
same little chunk of memory as the variable on the right.  This is
different from the usual assignment in that when you change the left var
you change the value for the right var, too.

  $a = 1 ;
  $b = $a ;
  $c = &$a ;
  $b++ ; $c-- ;
  print "a = $a ; b = $b ; c = $c ;\n" ;
  // a = 0 ; b = 2 ; c = 0

3) You can't, as far as I know, assign-by-reference a function, so your
code should generate a parse error.


% 
% -Blake


HTH & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to