Kurt Pagani
2018-07-16 22:14:25 UTC
I'm struggling with an obstinate problem:
)show SI
SIunits is a package constructor
Abbreviation for SIunits is SI
This constructor is exposed in this frame.
------------------------------- Operations --------------------------------
index out of range
Although the package compiles and works perfectly, the )show command
persistently displays "index out of range". By exclusion I could reduce the
problem to:
)abbrev package SI SIunits
SIunits : Exports == Implementation where
USY ==> ['m,'kg,'s,'A,'K,'mol,'cd]
SIU ==> PhysicalUnitSystem(USY)
Exports == with
%m : Integer -> SIU
The "-> SIU" is the source of the evil. When changing SIU to INT for example,
then there is no problem at all. I've been supposing that it might be an issue
in the interpreter code. A 'grep', however, only yields two candidates:
$ grep "index out of range" *.*
br-search.boot: if startpos < 0 or startpos > n then error "index out of range"
match.boot: if startpos < 0 or startpos > n then error "index out of range"
BTW: the full code is @ http://axiom-wiki.newsynthesis.org/SandBoxPhysicalUnitSystem
I've no idea :(
Any hints appreciated.
Kurt
)show SI
SIunits is a package constructor
Abbreviation for SIunits is SI
This constructor is exposed in this frame.
------------------------------- Operations --------------------------------
index out of range
Although the package compiles and works perfectly, the )show command
persistently displays "index out of range". By exclusion I could reduce the
problem to:
)abbrev package SI SIunits
SIunits : Exports == Implementation where
USY ==> ['m,'kg,'s,'A,'K,'mol,'cd]
SIU ==> PhysicalUnitSystem(USY)
Exports == with
%m : Integer -> SIU
The "-> SIU" is the source of the evil. When changing SIU to INT for example,
then there is no problem at all. I've been supposing that it might be an issue
in the interpreter code. A 'grep', however, only yields two candidates:
$ grep "index out of range" *.*
br-search.boot: if startpos < 0 or startpos > n then error "index out of range"
match.boot: if startpos < 0 or startpos > n then error "index out of range"
BTW: the full code is @ http://axiom-wiki.newsynthesis.org/SandBoxPhysicalUnitSystem
I've no idea :(
Any hints appreciated.
Kurt
--
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 post to this group, send email to fricas-***@googlegroups.com.
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.
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 post to this group, send email to fricas-***@googlegroups.com.
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.