Giter Site home page Giter Site logo

Comments (7)

derhyphon avatar derhyphon commented on August 13, 2024

Errorcodes like in C++ would be useful. Maybe as switch at the run command.

For example:
// run myprogram1 silent.
// run myprogram2 errorcode.

from kos.

Nivekk avatar Nivekk commented on August 13, 2024

I'm sure we can fix it so that at the very least it doesn't print the message when quitting a sub-program

from kos.

derhyphon avatar derhyphon commented on August 13, 2024

I think, you shouldn't remove the message. I think another command or a optional param is more useful, because I wrote scripts that I use in chains (preflight, launch, orbit) and some of them stand alone (transit).

So sometimes it's useful to me to see if a program has finished, to do some manual corrections, without disturbing the program, while it's executed.

from kos.

xZise avatar xZise commented on August 13, 2024

One way would be to print the message only when the last program was ended. I'm not sure how the interpreter handles the run command, but I guess as soon as the interpreter executed the last line of the current file it checks for the next command in the previous file (which called that other one). If it can't find one print the line.

from kos.

derhyphon avatar derhyphon commented on August 13, 2024

@xZise That should also work. Good suggestion.

from kos.

xZise avatar xZise commented on August 13, 2024

Okay d6abbc1 appears to solve this.

from kos.

Dunbaratu avatar Dunbaratu commented on August 13, 2024

This is claimed to be solved in 0.8 but until some of the other issues with 0.8 are solved I'm still using 0.7. Once I do use 0.8 I'll test this and if solved I'll close it.

from kos.

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.