M
mumebuhi
I am trying to understand the differences among these constructs:
# 1
my $p : shared;
$p->{'_name'} = "My Name";
# 2
my $p : shared = &share({});
$p->{'_name'} = "My Name";
Do 1 and 2 achieve the same thing?
# 3
my %p : shared;
$p{'_name'} = "My Name";
Is it fair to say that 3 is the simpler form compared to 1 and 2?
Thank you.
Buhi
# 1
my $p : shared;
$p->{'_name'} = "My Name";
# 2
my $p : shared = &share({});
$p->{'_name'} = "My Name";
Do 1 and 2 achieve the same thing?
# 3
my %p : shared;
$p{'_name'} = "My Name";
Is it fair to say that 3 is the simpler form compared to 1 and 2?
Thank you.
Buhi