aardappel / lobster

The Lobster Programming Language

Home Page:http://strlen.com/lobster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"return from program" not exiting program.

MortimerSnerd opened this issue · comments

I'm on commit 4d03557 which only seems to be missing some sample and cmake commits. I've only been able to try this on Linux so far.

I noticed I was getting messages printed from fatal() calls, but the program was continuing to run. Example:

import std

print("oi")
fatal("fatal error")
print("vey")  // This gets printed

The same happens with a bare "return from program" at the end of a function.

Sorry for not addressing this for so long.. Just was able to fix, thanks for reporting! This was actually broken for a while, but because return from program only gets used on fatal errors I never noticed :)