Re: [fricas/fricas] 005aa1: Add explicit imports

4 views
Skip to first unread message

Ralf Hemmecke

unread,
Aug 1, 2026, 2:41:49 AM (4 days ago) Aug 1
to fricas-devel
I wonder, why you have added

import Integer

next to

import from UnivariatePolynomialCommonDenominator(Z, Q, UPQ)

I thought that "import from ..." is the new normal.

Ralf

On 8/1/26 02:24, hebisch wrote:
> Branch: refs/heads/master
> Home: https://github.com/fricas/fricas
> Commit: 005aa1a7b27ab093b3bb5994f32184083396d4b2
> https://github.com/fricas/fricas/commit/005aa1a7b27ab093b3bb5994f32184083396d4b2
> Author: Waldek Hebisch <c...@fricas.org>
> Date: 2026-08-01 (Sat, 01 Aug 2026)
>
> Changed paths:
> M ChangeLog
> M src/algebra/alg_top.spad
> M src/algebra/algfact.spad
> M src/algebra/array1.spad
> M src/algebra/bags.spad
> M src/algebra/defintef.spad
> M src/algebra/defintrf.spad
> M src/algebra/derham.spad
> M src/algebra/dirichlet.spad
> M src/algebra/discrgrp.spad
> M src/algebra/distro.spad
> M src/algebra/dpolcat.spad
> M src/algebra/drawopt.spad
> M src/algebra/graph.spad
> M src/algebra/hypertex.spad
> M src/algebra/intalg.spad
> M src/algebra/intclos.spad
> M src/algebra/jet.spad
> M src/algebra/padiclib.spad
> M src/algebra/special2.spad
>
> Log Message:
> -----------
> Add explicit imports
>
>
>
> To unsubscribe from these emails, change your notification settings at https://github.com/fricas/fricas/settings/notifications

Waldek Hebisch

unread,
Aug 1, 2026, 9:24:24 AM (4 days ago) Aug 1
to 'Ralf Hemmecke' via FriCAS - computer algebra system
On Sat, Aug 01, 2026 at 08:41:44AM +0200, 'Ralf Hemmecke' via FriCAS - computer algebra system wrote:
> I wonder, why you have added
>
> import Integer
>
> next to
>
> import from UnivariatePolynomialCommonDenominator(Z, Q, UPQ)
>
> I thought that "import from ..." is the new normal.

AFAICS "import xxx" should cause no trouble now and in the future,
'from' is a keyword so if we add functionality the two forms
will be clearly distinguished.

I this case I also prefered to make visible difference compared
to old import statements: the new one are needed to compile
when '$tryRecompileArguments' is set to false, but otherwise
import is done automatically (implicitely) by Spad compiler.

--
Waldek Hebisch

Ralf Hemmecke

unread,
Aug 1, 2026, 2:11:48 PM (4 days ago) Aug 1
to fricas...@googlegroups.com
On 8/1/26 15:24, Waldek Hebisch wrote:
> AFAICS "import xxx" should cause no trouble now and in the future,
> 'from' is a keyword so if we add functionality the two forms
> will be clearly distinguished.
>
> I this case I also prefered to make visible difference compared
> to old import statements: the new one are needed to compile
> when '$tryRecompileArguments' is set to false, but otherwise
> import is done automatically (implicitely) by Spad compiler.

I did not speak of trouble. I am sure you know what you are doing, but I
remembered these commits, see below. They were probably ment to make
SPAD and Aldor more similar. No? So why now just import and not 'import
from'?

commit 6c060a4ef1adc0680c749ecf28b9ef13c171b087
Author: Waldek Hebisch <heb...@math.uni.wroc.pl>
Date: Sun Apr 6 19:25:30 2014 +0000

s/import/import from/


commit a062325f19b260ee437b347266cf6a042552708b
Author: Waldek Hebisch <heb...@math.uni.wroc.pl>
Date: Wed Oct 31 21:05:11 2012 +0000

Allow 'import from'.


Ralf

Waldek Hebisch

unread,
Aug 1, 2026, 7:31:24 PM (3 days ago) Aug 1
to 'Ralf Hemmecke' via FriCAS - computer algebra system
On Sat, Aug 01, 2026 at 08:11:44PM +0200, 'Ralf Hemmecke' via FriCAS - computer algebra system wrote:
> On 8/1/26 15:24, Waldek Hebisch wrote:
> > AFAICS "import xxx" should cause no trouble now and in the future,
> > 'from' is a keyword so if we add functionality the two forms
> > will be clearly distinguished.
> >
> > I this case I also prefered to make visible difference compared
> > to old import statements: the new one are needed to compile
> > when '$tryRecompileArguments' is set to false, but otherwise
> > import is done automatically (implicitely) by Spad compiler.
>
> I did not speak of trouble. I am sure you know what you are doing, but I
> remembered these commits, see below. They were probably ment to make SPAD
> and Aldor more similar. No? So why now just import and not 'import from'?

'import from' was intended to helps folks trying to compile FriCAS
algebra with Aldor compiler. But nobody seem to have any success
with that and 'import from' looks like least of involved problems.

>
> commit 6c060a4ef1adc0680c749ecf28b9ef13c171b087
> Author: Waldek Hebisch <heb...@math.uni.wroc.pl>
> Date: Sun Apr 6 19:25:30 2014 +0000
>
> s/import/import from/
>
>
> commit a062325f19b260ee437b347266cf6a042552708b
> Author: Waldek Hebisch <heb...@math.uni.wroc.pl>
> Date: Wed Oct 31 21:05:11 2012 +0000
>
> Allow 'import from'.
>
>
> Ralf
>
> --
> You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/fricas-devel/7fdbafe6-4081-483c-b53e-405ccc2650b0%40hemmecke.org.

--
Waldek Hebisch
Reply all
Reply to author
Forward
0 new messages