Skip to content
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

expressions in repl blocks are evaled #923

Closed
kleinschmidt opened this issue Jan 13, 2019 · 0 comments
Closed

expressions in repl blocks are evaled #923

kleinschmidt opened this issue Jan 13, 2019 · 0 comments
Milestone

Comments

@kleinschmidt
Copy link

It seems like any Expr that's returned in a @repl block is evaled before it's printed. This doesn't happen in an @example block though. Here's an MWE:

markdown input

```@repl 1
a = 1
:(a + 1)
```

```@example 1
:(a + 1)
```

markdown output


```julia-repl
julia> a = 1
1

julia> :(a + 1)
2
```


```julia
:(a + 1)
```

```
:(a + 1)
```
@mortenpi mortenpi added this to the 0.21.1 milestone Jan 23, 2019
mortenpi pushed a commit that referenced this issue Jan 24, 2019
* fix #923: setting ans to a expression in REPLBlocks.
mortenpi pushed a commit that referenced this issue Jan 27, 2019
* fix #923: setting ans to a expression in REPLBlocks.

(cherry picked from commit 8d17f68)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants