GithubHelp home page GithubHelp logo

Comments (7)

masinter avatar masinter commented on June 15, 2024

\INTERPRETER1 in LLINTERP changes the stack frame of its caller to look like it's bound the "special" variable FOO, But the value is the symbol NOBIND which is 1 (?!). "There's a comment Note: area is initialize to NIL's (zero), so end of nametable already has its zeroes.d"

from medley.

nbriggs avatar nbriggs commented on June 15, 2024

It's correct that NIL and NOBIND are the first two atoms at indexes 0 and 1 (while T is 0114Q), that's hardwired into the code.

from medley.

masinter avatar masinter commented on June 15, 2024

I don't remember the convention that unbound atoms are bound to NOBIND? But this is' Broken As Designed because NOBIND is an atom and so FOO is bound to NOBIND. (LET ((FOO 'NOBIND)) (LIST FOO)) gives the same error (Interlisp interpreter only -- the Common Lisp interpreter uses lexical binding and compiled code doesn't need to look up for the bindings on the stack

from medley.

nbriggs avatar nbriggs commented on June 15, 2024

Ah, obvious when you point it out. If you compile the (INTERLISP) function incorporating the above code it works fine, it's just the interpreted version that fails. Thanks.

from medley.

masinter avatar masinter commented on June 15, 2024

this is a fundamental of the Interlisp interpreter

from medley.

masinter avatar masinter commented on June 15, 2024

image
Implementation doesn't match documentation.

from medley.

masinter avatar masinter commented on June 15, 2024

while it's a mystery why this choice was made....

from medley.

Related Issues (20)

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.