At 4:52 PM -0700 4/26/04, TOGoS wrote:
> (And yes, this means store_global
will be relatively little-used)

Would a few operators like 'find_or_store_reference_global' (shorten the name as you like) be in order for those situations where you want to store to a global but don't know if the variable exists, yet? (This would, I think, be very useful in languages where globals are not predelared).

I can see it being so, but there's the issue of the *type* of what's in that slot to contend with. If it didn't exist you wouldn't necessarily want to fill it in with a


 > So, generally, the problem isn't one,

My only issue is that it's not always clear whether an
op is assigning to a reference PMC or just a PMC
register (or whatever). People like to write stuff
like

  $P0 = new PerlInt # Value!
  $P0 = 1           # Reference!

and that still bothers me.

That's a side-effect of IMCC.(I've got a big library of IMCC library code and it's darned confusing to me, too) It was a lot clearer with the old-style pasm:


  set S4, P5
  set P5, I5

where it was a lot clearer what was going on and the automatic conversions were more obvious.
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to