Re: Loading to_poly_solve has side-effect ?

Richard Fateman <[email protected]> Mon, 27 Jul 2026 18:08:56 -0700
Newsgroups gmane.comp.mathematics.maxima.general
Message-ID <CADB8Zm6dDubVjtL4y34p1crwd=Vs8kc0X6ouezTRJEcBybE1fw@mail.gmail.com>
--===============6902508571736965415==
Content-Type: multipart/alternative; boundary="0000000000005f44340657a17cbe"

--0000000000005f44340657a17cbe
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

It used to be common for packages to start with a line or two that checked
whether the package had already been loaded
by checking some global symbol, which is initialized when that package is
loaded.  If so, the loading process is cut short.
 This may interfere with attempts to "kill" stuff or have other side
effects.  In debugging a package you may in fact want to
re-load a package.
Rjf

On Mon, Jul 27, 2026 at 2:09=E2=80=AFPM Wolfgang Dautermann via Maxima-disc=
uss <
[email protected]> wrote:

> Am 27.07.26 um 10:03 schrieb serge de marre:
> > So far everything ok. Now, I need to_poly_solve, so I load it.
> >
> > Everything ok.
> > I forget I loaded to_poly_solve, so I load it again (could happen,
> > right ? :))
>
> 2018 I tried to add a small test-script which tries to load every
> package, every package twice or any combinations of two packages:
> tests/testpackages.sh
> This may be helpful to find such problems.
>
> See commit: d74089fc023a897c9819e7ecd5e675f2458d1676
>
> Currently it seems to be dropped in the lisp debugger several times,
> which must be exited - why? That was most likely not the case 2018.
>
> The main "problem" is - what is a valid "package" and what's just a
> helper function file? Is there test to check that? Maybe just with a
> 'grep' command?
>
> Best regards, Wolfgang
>
>
> _______________________________________________
> Maxima-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/maxima-discuss
>

--0000000000005f44340657a17cbe
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:arial,sans-serif;font-size:small">It used to be common for package=
s to start with a line or two that checked whether the package had already =
been loaded</div><div class=3D"gmail_default" style=3D"font-family:arial,sa=
ns-serif;font-size:small">by checking some global symbol, which is initiali=
zed when that package is loaded.=C2=A0 If so, the loading process is cut sh=
ort.</div><div class=3D"gmail_default" style=3D"font-family:arial,sans-seri=
f;font-size:small">=C2=A0This may interfere with attempts to &quot;kill&quo=
t; stuff or have other side effects.=C2=A0 In debugging a package you may i=
n fact want to</div><div class=3D"gmail_default" style=3D"font-family:arial=
,sans-serif;font-size:small">re-load a package.</div><div class=3D"gmail_de=
fault" style=3D"font-family:arial,sans-serif;font-size:small">Rjf</div></di=
v><br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" cla=
ss=3D"gmail_attr">On Mon, Jul 27, 2026 at 2:09=E2=80=AFPM Wolfgang Dauterma=
nn via Maxima-discuss &lt;<a href=3D"mailto:[email protected]=
e.net">[email protected]</a>&gt; wrote:<br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p=
x solid rgb(204,204,204);padding-left:1ex">Am 27.07.26 um 10:03 schrieb ser=
ge de marre:<br>
&gt; So far everything ok. Now, I need to_poly_solve, so I load it.<br>
&gt; <br>
&gt; Everything ok.<br>
&gt; I forget I loaded to_poly_solve, so I load it again (could happen, <br=
>
&gt; right ? :))<br>
<br>
2018 I tried to add a small test-script which tries to load every <br>
package, every package twice or any combinations of two packages:<br>
tests/testpackages.sh<br>
This may be helpful to find such problems.<br>
<br>
See commit: d74089fc023a897c9819e7ecd5e675f2458d1676<br>
<br>
Currently it seems to be dropped in the lisp debugger several times, <br>
which must be exited - why? That was most likely not the case 2018.<br>
<br>
The main &quot;problem&quot; is - what is a valid &quot;package&quot; and w=
hat&#39;s just a <br>
helper function file? Is there test to check that? Maybe just with a <br>
&#39;grep&#39; command?<br>
<br>
Best regards, Wolfgang<br>
<br>
<br>
_______________________________________________<br>
Maxima-discuss mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">M=
[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/maxima-discuss" rel=
=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/listi=
nfo/maxima-discuss</a><br>
</blockquote></div></div>

--0000000000005f44340657a17cbe--


--===============6902508571736965415==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============6902508571736965415==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Maxima-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maxima-discuss

--===============6902508571736965415==--