variable-binding Questions
3
Solved
[NOTE: I asked this question based on an older version of Rakudo. As explained in the accepted answer, the confusing output was the result of Rakudo bugs, which have now been resolved. I've left th...
Polypary asked 18/9, 2021 at 4:10
1
Solved
[EDIT: closed in favor of https://mcmap.net/q/1507233/-what-are-the-rules-for-re-binding, which I formulated after more clearly understanding what I was trying to ask in this question.]
My un...
Gastroenterostomy asked 3/9, 2021 at 18:51
1
Solved
The following line declares a variable and binds it to the number on the right-hand side.
my $a := 42;
The effect is that $a is not a Scalar, but an Int, as can be seen by
say $a.VAR.^name;
My qu...
Kaitlin asked 27/6, 2021 at 15:25
1
Solved
The Perl6 docs state "By default, parameters are bound to their argument and marked as read-only." But running the following code:
# Example 1
sub f1 ( $x ) { say $x.VAR.WHAT; say $x.WHAT; say $x ...
Chaco asked 22/6, 2019 at 12:26
3
Is there any difference between binding a variable and binding a method in template *ngIf.
Ex:
Case 1:
<div *ngIf="myVar">ABC</div>
Case 2:
<div *ngIf="myFunction()">ABC<...
Aspia asked 7/8, 2018 at 9:20
2
Solved
Let me start by saying that I understand that what I'm asking about in the title is dubious practice (as explained here), but my lack of understanding concerns the syntax involved.
When I first tr...
Ariannearianrhod asked 24/6, 2018 at 10:18
1
© 2022 - 2024 — McMap. All rights reserved.