-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interpreter does not handle ref properly #149
Comments
That's very strange. It looked like an obvious I'll look at this later on today. |
@masonwheeler Do you mean that for now I can work around it by turning ducky on/off? |
No, I mean you can't work around it by turning ducky on/off. That was mostly written as a note to myself: "on the surface this looks like an obvious |
Ah yeah sorry I should have read what you said more carefully. |
The root of the problem is in Fixing this won't be easy. It'll take a bit of research first... |
Sounds to me then maybe that things that implement |
It goes deeper than that, actually.
Run this as a console app, and you get @bamboo Would you be able to take a look at this? |
Yeah I was already aware of the third one when it's a field of a class, because we worked around the other issue I had (with object conversion to bool) that somehow worked when we put it in a class called But yes it makes me a little uncomfortable how the semantics differ so much in the interpreter. Makes me wonder if I'll soon need to swap it out for taking the region of text and compiling it and running or something, since all I'm doing is running a snippet of code.. Ideally though, Interpreter should share semantics with the compiler more or less exactly. |
Also experiencing problems with |
This code:
Compiles just fine with booc, no errors.
However, when executing code like that in the interpreter you get an error like this:
The text was updated successfully, but these errors were encountered: