You can assign to a global name which is the same name as a local name by
specifying the locale as part of the name. Not necessarily the neatest way
to do it but it seems to me to be better than making up a new bunch of
copulas.
   test=:3 : 0
z=.1 2 3
z_base_=:4 5 6
z
)
   test''
1 2 3
   z
4 5 6

On Wed, Nov 19, 2008 at 8:30 AM, Raul Miller <[EMAIL PROTECTED]> wrote:

> Food for thought (this would be a breaking change in J if fully
> implemented)
>
> In addition to the local/global distinction for names (where we currently
> get
> a domain error if we try and update a global name when we have a local
> value for that name), another distinction is the "first time" vs. "update"
> mechanism.
>
> In most (but not all) contexts, we want to do one or the other, but not
> both.  If this aspect of the intention of the programmer could be made
> visible, that might be helpful for readers.
>
> The potential breaking change is that if we wanted to encourage this
> kind of presentation (and the associated potential for catching bugs),
> the more generic copula (first time and update) would be longer than
> the more specific copula (first time, or update).
>
> That said, when combined with the local/global distinction, this
> would wind up being a lot of copulas (six).
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to