GithubHelp home page GithubHelp logo

"postpone" does not work properly about yoda HOT 3 CLOSED

ruv avatar ruv commented on May 28, 2024
"postpone" does not work properly

from yoda.

Comments (3)

Bushmills avatar Bushmills commented on May 28, 2024 1

as postpone is passing this test from forth-standard.org, this issue can probably be closed now.
Note that there's a minor glitch in the test on forth-standard.org: the first line refers to
a word named GT1 which is just assumed to exist. From context it can be taken that it is presumably meant to be non-immediate : GT1 123 ;
So when trying that test, you need to supply GT1 yourself before compiling further lines from the test.

from yoda.

Bushmills avatar Bushmills commented on May 28, 2024

That's what I could call a plain blooper, due to me never having really wrapped my head around postpone. I'm a relict from the [compile] and compile time.
However, this seems like a great opportunity to get the hang of postpone now.

I've now added "pretend" pseudo code to postpone, which outputs its actions and tells me what result to expect when replacing pseudo against real code. But I'd like to check back with you before I cast it onto code:

whoami simply helps identifying the words, by showing names and xts.

foo is the non-immediate word which gets postponed in and by bar. I reckon the idea of postponing a normal word is to let it compile by an immediate word into a word under construction. Therefore I've made bar immediate.

According to my newly gained but yet questionable understanding of postpone I expect bar now to compile a call into xyzzy, as the printed "pretend" message indicates.

Here's a screenshot of test code (above the divider line) and the output resulting from running it (below divider). Does that look correct?

postpone test with pretend output

from yoda.

Bushmills avatar Bushmills commented on May 28, 2024

This release contains the changes to postpone to let it generate and compile the actual code, rather than just pretending that it does.

from yoda.

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.