Git Product home page Git Product logo

lispf4's People

Contributors

blakemcbride avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lispf4's Issues

Runtime execution failure of SYSATOMS.

The downstream bug describing the exact situation can be found here.
This bug is 100% reproducible across all systems I tried so far, and can be reproduced if you install Guix or GuixSD on some form of a system including just a VM (see Guix documentation for this short process).
I can not invest the time into this bug so I hope some people involving the author of this software will get to solving this bug.

Trying to use MAKEFILE to save own function

I am trying to save the example function MYMAX to the mymax.lsp file.
Here is what the UsersGuide.txt says about the how-to:

Ex.:  Define some functions and save them as your file MYFILE on the
logical unit 25.
 
        (OPEN 'MYFILE 'O 25)       (this line not needed when your system
                                    uses symbolic file names, or if you let
                                    MAKEFILE prompt you for logical unit
                                    number of MYFILE)
        (CURFILE MYFILE)
        (DE ....]
        (DE ....]
        etc.
        (MAKEFILE 'MYFILE "filename.l" T)

I am trying the following code:

(OPEN 'MYFILE 'O 25)
(CURFILE 'MYFILE)
(SETQ MYFILECOMS "MYFILE-PACKAGE")
(SETQ MYFILEFNS '(MYMAX MYFILEFNS))

(DE MYMAX (L)
  (PROG (X)
        (COND ((NULL L) (RETURN NIL)))
        (SETQ X (CAR L))
   LOOP (SETQ L (CDR L))
        (COND ((NULL L) (RETURN X))
              ((LESSP X (CAR L)) (SETQ X (CAR L))))
        (GO LOOP)))

(MAKEFILE 'MYFILE "mymax.lsp" t)

Here is what mymax.lsp contains:

(FILEHEADER MYFILE)
(PRINT '"MYFILE-PACKAGE")
(PRINT '(VERSION 0))
(DEFINEQ
(*
  (SUBR . TIMES))

('(MYFILEFNS MYMAX)
  NIL)

)
(PRINT 'MYFILEFNS)
(RPAQQ MYFILEFNS (MYFILEFNS MYMAX))
(RPAQQ MYFILECOMS "MYFILE-PACKAGE")
(RPAQ MYFILEGENNR 0)
STOP

When I rename MYMAX to * ...

(OPEN 'MYFILE 'O 25)
(CURFILE 'MYFILE)
(SETQ MYFILECOMS "MYFILE-PACKAGE")
(SETQ MYFILEFNS '(MYMAX MYFILEFNS))

(DE * (L)
  (PROG (X)
        (COND ((NULL L) (RETURN NIL)))
        (SETQ X (CAR L))
   LOOP (SETQ L (CDR L))
        (COND ((NULL L) (RETURN X))
              ((LESSP X (CAR L)) (SETQ X (CAR L))))
        (GO LOOP)))

(MAKEFILE 'MYFILE "mymax.lsp" t)

... the result is:

(FILEHEADER MYFILE)
(PRINT '"MYFILE-PACKAGE")
(PRINT '(VERSION 0))
(DEFINEQ
(*
  (LAMBDA (L)
          (PROG (X)
                (COND ((NULL L) (RETURN NIL)))
                (SETQ X (CAR L))
           LOOP (SETQ L (CDR L))
                [COND ((NULL L) (RETURN X))
                      ((LESSP X (CAR L)) (SETQ X (CAR L]
                (GO LOOP))))

('(MYFILEFNS MYMAX)
  NIL)

)
(PRINT 'MYFILEFNS)
(RPAQQ MYFILEFNS (MYFILEFNS MYMAX))
(RPAQQ MYFILECOMS "MYFILE-PACKAGE")
(RPAQ MYFILEGENNR 0)
STOP

Is this a bug or am I doing something wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.