Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

Proper panic #705

Open
MovingtoMars opened this issue Feb 26, 2016 · 3 comments
Open

Proper panic #705

MovingtoMars opened this issue Feb 26, 2016 · 3 comments
Milestone

Comments

@MovingtoMars
Copy link
Member

We should have a nice panic function that unwinds the stack, runs deferred functions, then prints a pretty error message with stack trace.

Right now, panic is temporarily implemented as a function in runtime.

@MovingtoMars MovingtoMars added this to the bootstrap milestone Feb 26, 2016
@felixangell
Copy link
Member

When you say its "temporarily implemented as a function runtime"... will it always be in the runtime? Me and @kiljacken discussed this in IRC, and we think that it might be best if its moved into the standard library so we don't have dependencies to libc in the runtime of the language.

@MovingtoMars
Copy link
Member Author

To unwind the stack and all that stuff, it needs to be implemented in the compiler.

@felixangell
Copy link
Member

As in, the runtime of the compiler?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants