Code Monkey home page Code Monkey logo

Comments (5)

ruv avatar ruv commented on September 13, 2024

A testcase has been appended. It is strange that catch cannot catch this exception.

from gforth.

larsbrinkhoff avatar larsbrinkhoff commented on September 13, 2024
  1. Why do you execute an anonymous definition rather than use plain interpreted code?

  2. Use ['] in compile state to tick refill.

  3. The link from "appended" doesn't go to a test case.

from gforth.

ruv avatar ruv commented on September 13, 2024
  1. Plain interpreted code cannot be used since after refill the whole input buffer is replaced. So cr . . will not be executed.

  2. Thanks for the point. It is my typo. Certainly, I used ['] in compiling. I have fixed this typo in the message above.

  3. I use the link to the updated message in the new message for the situation when the new message is read in email client and it is not obvious where something was changed or appended. Nevertheless, I have placed the precise anchor now.

from gforth.

ruv avatar ruv commented on September 13, 2024

Well, regarding the Backtrace — I overlooked that it prints the result of catch and shows a back trace for the next Stack underflow error, the partial screen content:

[: ['] refill catch cr . .  ;] execute
-56 -4
*the terminal*:8:32: error: Stack underflow
[: ['] refill catch cr . .  ;] >>>execute<<<
Backtrace:

So my conclusion that catch does not catch this exception was wrong.

The updated testcase:

[: 0 ['] refill catch cr . .  ;] execute

from gforth.

larsbrinkhoff avatar larsbrinkhoff commented on September 13, 2024

Thanks.

from gforth.

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.