develooper Front page | perl.perl6.users | Postings from September 2018

metamorphosis or alchemy?

Thread Next
From:
ToddAndMargo
Date:
September 17, 2018 00:52
Subject:
metamorphosis or alchemy?
Message ID:
13e31e44-12e4-44e3-55bf-01f127345588@zoho.com
Hi All,

I am confused, again:


$ p6 'my $x=3; dd $x'
Int $x = 3
Makes sense


$ p6 'my $x; dd $x'
Any $x = Any
Makes Sense

$ p6 'my Real $x; dd $x'
Real $x = Real
makes sense

$ p6 'my Real $x = 3; dd $x'
Int $x = 3
What ???? Integer ?????  Did I or did I not just tell it
is was a "Real" ?????

:'(

-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About