>>>>> "SC" == Steve Canfield <[EMAIL PROTECTED]> writes:

  SC> Would it be accurate to say that "is" sets properties of variables,
  SC> whereas "but" sets properties of values? If so, what would this output:

  SC>   my $var is true;

that is not a variable property so it should be a compile time error.

  SC>   $var=0;
  SC>   if ($var) {print "true"}
  SC>   else {print "false"}

  SC> I would expect it to output "false".

it won't even compile so i don't expect output. :)

this wasn't clear enough when it was discuss. you can't set data
properties on a variable and vice versa. 'is' sets variable props and
'but' sets data props. runtime stuff will usually check data props
(maybe readonly which is a variable prop would be checked then
too). compile time stuff will deal with variable props. 
OO will be a different story as all the my Dog $spot threads have
shown. until that apocalypse i won't venture how OO will deal with props.

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  -------- http://www.stemsystems.com
----- Stem and Perl Development, Systems Architecture, Design and Coding ----
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org

Reply via email to