Git Product home page Git Product logo

Comments (3)

baku89 avatar baku89 commented on August 18, 2024 1

It might be related to the special form eval* I made for Glisp. It's used inside a function/macro but evaluates an expression in scope called the function/macro unlike the normal eval which always evaluates in a global scope.

(defn test []
  (eval  '(prn "eval=" PI)) ; -> 3.14159
  (eval* '(prn "eval*=" PI))) ; -> 10

(def PI 10)
(test)

graphics/transform uses eval* inside its definition but it seems that the part inside eval* isn't bound to appropriate scope. I will try to resolve the problem as soon as possible.:)

from glisp.

baku89 avatar baku89 commented on August 18, 2024 1

Now your sketch would work :)

https://glisp.app/commit:198294a

from glisp.

baku89 avatar baku89 commented on August 18, 2024

Thanks! It seems a much more urgent issue relating to the core evaluator.
Simpler code to reproduce the error:

(def x 10)

(transform (translate [x 0])
	(circle [0 0] 100))

from glisp.

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.