Skip to content

Commit

Permalink
Update Proxy to be consistent with assignment reference model.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Feb 16, 2010
1 parent 383857b commit 9f1eb02
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/builtins/Proxy.pir
Expand Up @@ -52,9 +52,20 @@ container.
# now bind self into the base container
base[key] = self

# and complete the STORE on self
.const 'Sub' $P0 = 'Mu::!STORE'
.tailcall self.$P0(source)
# get the item to be stored
source = descalarref source
$I0 = can source, 'item'
unless $I0 goto have_source
source = source.'item'()
have_source:

# convert self into a scalar
$P0 = new ['ObjectRef'], source
copy self, $P0
$P0 = get_hll_global ['Bool'], 'True'
setprop self, 'scalar', $P0

.return (self)
.end


Expand Down

0 comments on commit 9f1eb02

Please sign in to comment.