Thank you. It really helps.
Then I go further to understand and I find interesting.
The same applies to int 3.
> 3.WHERE
94821123453912
As expected, is different from str 3
> "3".WHERE
139904951827592
But the same to $a.
> my $a = 3;
3
I suppose that the constant 3 is created only when called. AF
On Wed, Feb 12, 2020 at 10:27:20AM -0300, Aureliano Guedes wrote:
> So, I'd like to find a way to test if two variables are bound or not,
> especially concerning their memory address.
>
> If the address is not fixed for a lifetime, I must be able to test it in
> just one cycle.
> > $a.WHERE == $b.
Thanks for the tip!
This might be useful to data analysis tools.
On Wed, Feb 12, 2020 at 11:01 AM Brad Gilbert wrote:
> If you want to find out if two variables are bound to the same data, there
> is an operator for that
>
> my $a = 3;
> my $b = 3;
> say $a =:= $b; # False
>
> m
If you want to find out if two variables are bound to the same data, there
is an operator for that
my $a = 3;
my $b = 3;
say $a =:= $b; # False
my $c := $b;
say $b =:= $c; # True
On Wed, Feb 12, 2020 at 7:27 AM Aureliano Guedes
wrote:
> Thank you.
>
> So, I'd like to find a
Thank you.
So, I'd like to find a way to test if two variables are bound or not,
especially concerning their memory address.
If the address is not fixed for a lifetime, I must be able to test it in
just one cycle.
> $a.WHERE == $b.WHERE # I expected FALSE
True
To a bound variable, I expect the
> On 12 Feb 2020, at 13:44, Aureliano Guedes wrote:
>
> What "WHERE" should return?
>
> I was trying to find a method to return the memory address of some data.
> Then I find the WHERE statement.
> https://rosettacode.org/wiki/Address_of_a_variable#Perl_6
> https://docs.perl6.org/language/mop
What "WHERE" should return?
I was trying to find a method to return the memory address of some data.
Then I find the WHERE statement.
https://rosettacode.org/wiki/Address_of_a_variable#Perl_6
https://docs.perl6.org/language/mop#WHERE
Then I tested it.
I created $a, $b and $c, where $c is binded