The program

-- bad.spad --
)abbrev package BAD Bad
Bad() : Exports == Implementation where

  Exports ==  with

    bad: OrderedVariableList(['epsabs,'epsrel]) -> Integer

  Implementation ==  add

    bad(opts) == 0
--

compiles without apparent errors but produces a signature of:

  bad : OrderedVariableList construct(QUOTE epsabs,QUOTE epsrel) -> Integer

and then the command

  )sh Bad

fails with an "index error".

wspage@suse:~> fricas
Checking for foreign routines
AXIOM="/usr/local/lib/fricas/target/x86_64-suse-linux"
spad-lib="/usr/local/lib/fricas/target/x86_64-suse-linux/lib/libspad.so"
foreign routines found
openServer result 0
                       FriCAS Computer Algebra System
                         Version: FriCAS 2014-12-18
                   Timestamp: Sun Oct 25 21:18:13 EDT 2015
-----------------------------------------------------------------------------
   Issue )copyright to view copyright notices.
   Issue )summary for a summary of useful system commands.
   Issue )quit to leave FriCAS and return to shell.
-----------------------------------------------------------------------------

(1) -> )co bad.spad
   Compiling FriCAS source code from file /home/wspage/bad.spad using
      old system compiler.
   BAD abbreviates package Bad
------------------------------------------------------------------------
   initializing NRLIB BAD for Bad
   compiling into NRLIB BAD
   compiling exported bad : OrderedVariableList construct(QUOTE
epsabs,QUOTE epsrel) -> Integer
      BAD;bad;OvlI;1 is replaced by 0
Time: 0 SEC.

(time taken in buildFunctor:  0)

;;;     ***       |Bad| REDEFINED

;;;     ***       |Bad| REDEFINED
Time: 0 SEC.


   Cumulative Statistics for Constructor Bad
      Time: 0 seconds

   finalizing NRLIB BAD
   Processing Bad for Browser database:
--->-->Bad(constructor): Not documented!!!!
--->-->Bad((bad ((Integer) (OrderedVariableList (construct (QUOTE
epsabs) (QUOTE epsrel)))))): Not documented!!!!
--->-->Bad(): Missing Description
; compiling file "/home/wspage/BAD.NRLIB/BAD.lsp" (written 04 NOV 2015
09:42:52 PM):

; file: /home/wspage/BAD.NRLIB/BAD.lsp
; in: SDEFUN |BAD;bad;OvlI;1|
;     (BOOT::SDEFUN BOOT::|BAD;bad;OvlI;1|
;                   ((BOOT::|opts| BOOT::|OrderedVariableList|
;                     (BOOT::|construct| 'BOOT::|epsabs| 'BOOT::|epsrel|))
;                    (BOOT::$ BOOT::|Integer|))
;                   0)
; --> DEFUN PROGN SB-IMPL::%DEFUN SB-IMPL::%DEFUN SB-INT:NAMED-LAMBDA
; ==>
;   #'(SB-INT:NAMED-LAMBDA BOOT::|BAD;bad;OvlI;1|
;         (BOOT::|opts| BOOT::$)
;       (BLOCK BOOT::|BAD;bad;OvlI;1| 0))
;
; caught STYLE-WARNING:
;   The variable |opts| is defined but never used.
;
; caught STYLE-WARNING:
;   The variable $ is defined but never used.
;
; compilation unit finished
;   caught 2 STYLE-WARNING conditions

; /home/wspage/BAD.NRLIB/BAD.fasl written
; compilation finished in 0:00:00.006
------------------------------------------------------------------------
   Bad is now explicitly exposed in frame frame1
   Bad will be automatically loaded when needed from
      /home/wspage/BAD.NRLIB/BAD

(1) -> )sh Bad
 Bad  is a package constructor
 Abbreviation for Bad is BAD
 This constructor is exposed in this frame.
------------------------------- Operations --------------------------------

   >> Error detected within library code:
   index out of range

(1) ->

Bill Page

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to fricas-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to