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

metamorphosis or alchemy?

Thread Next
September 17, 2018 00:52
metamorphosis or alchemy?
Message ID:
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" ?????



Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About