Comments (3)
I noticed this the other day whilst playing with some code. I am working on a fix. I think we will have to run the code inside an iframe to keep each set of compiled code independent.
from opal.github.io.
@adambeynon in my humble opinion this issue should be closed without changing the current behavior. The way it works now is very much in line with what one would expect coming from irb or pry, which is that the environment is "live" and any classes or constants defined in a previous execution are available in the next execution. If one wanted to reset the environment, one can always hit F5 :) The value provided by having a "live" environment far outweighs any potential negatives.
from opal.github.io.
I agree with @vais fwiw
from opal.github.io.
Related Issues (15)
- Try Opal: print does not work HOT 4
- Blog homepage shows incorrect title HOT 1
- Add a section with Opal related resources HOT 4
- Example at "/usage" doesn't work as described HOT 22
- Add numbers to docs: "unsupported features" HOT 1
- Getting started considered harmful HOT 2
- JavaScript -> OpalRb HOT 1
- Hash collisions HOT 2
- CDN returns 404 HOT 2
- Update "Try Opal now!", please HOT 2
- Update opalrb.org/libraries page HOT 2
- Use do end in config.ru not work. HOT 3
- https://opalrb.com/try/ uses Opal 0.11.4 ? HOT 1
- Guides have disappear HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opal.github.io.