[PATCH] change remaining "import" to "import from"

5 views
Skip to first unread message

Qian Yun

unread,
Apr 9, 2024, 8:18:08 AM4/9/24
to fricas-devel
This patch changes all remaining "import" to "import from".

The removed lines are mostly "import from Record(...)".

Should we also modify "parse_Import" from "s-parser.boot"
so that it gives error on "import XXX"?

- Qian
import-from.patch

Waldek Hebisch

unread,
Apr 9, 2024, 11:13:22 AM4/9/24
to fricas...@googlegroups.com
No. 'import' is supposed to work. AFAICS there is no conflict
betweem plain 'import' and general 'import fun from dom', so
we can keep plain 'import'. In fact, change to 'import from'
was for Aldor compatibility, but the two form do not conflict,
so we can keep both. I kept the remaining plain 'import'-s
to have testcases in algebra source for this form.

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