[Jprogramming] Name conflict in J system scripts - who cares ?
Anssi Seppälä
anssi.seppala at enease.fi
Sat Dec 29 21:03:49 UTC 2012
Thanks, just updated Package Manager but the problem is still there. However it is easy to fix by adding a erase line to jzplot - script.
How it is informed when base library is rebuilt?
t. Anssi
-----Original Message-----
From: programming-bounces at forums.jsoftware.com [mailto:programming-bounces at forums.jsoftware.com] On Behalf Of bill lam
Sent: 29. joulukuuta 2012 13:07
To: programming at jsoftware.com
Subject: Re: [Jprogramming] Name conflict in J system scripts - who cares ?
Sorry, it should be Henry who fixed it.
Сб., 29 дек. 2012, bill lam писал(а):
> Chris has already fixed in svn.
>
> I agree this is a nasty bug, the reason why it does not affect J701 is
> that dll is part of stdlib and loaded during booting and load'dll' is
> a no-op.
>
> Пт., 28 дек. 2012, Anssi Seppälä писал(а):
> > My J602 development broke suddenly after a JAL update. The built script did not work in runtime. The reason appears to be in a name conflict in two different scripts that are added in same build: dll.ijs and jzplot.ijs. Both scripts declare name "endian": jzplot.ijs locally in class locale and dll.ijs globally in locale z and. The second assignment causes domain error while running the script.
> >
> > You can simulate the situation by running the following lines in a script (24.ijs):
> >
> > cocurrent'test'
> > a=. 12
> > cocurrent 'z'
> > a=: 13
> >
> > load 'C:\j602\user\temp\24.ijs'
> > |domain error: script
> > | a =:13
> > |[-3] C:\j602\user\temp\24.ijs
> >
> >
> > The script jzplot.ijs includes a executed line jzplot class locale:
> > endian=. ({.a.)={. 1&(3!:4) 1
> >
> > and dll.ijs includes a executed line in z locale:
> > endian=: |.^:('a'={.2 ic a.i.'a')
> >
> >
> > I have only questions:
> > Which script (jzplot.ijs or dll.ijs) should be fixed and how ? Who will do the fix and how such conflicts causing such nasty errors could be avoided in the future?
> >
> > Anssi
> > --------------------------------------------------------------------
> > -- For information about J forums see
> > http://www.jsoftware.com/forums.htm
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list