Erm, set-box! not box-set! My bad.
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more options, visit
#%top provides fallback behavior at compile time, but only in expression
positions. I think what you want can be done by doing this:
- Under the hood, make variables immutable and have their values be boxes.
- Have (set! x:id expr) and (define x:id expr) both expand to (box-set! x
expr). This
On Thursday, June 2, 2016 at 10:06:25 AM UTC-7, Matthew Butterick wrote:
> I have a solution to this problem — is it legit, or is there some slick
> Rackety technique I'm missing?
>
> I'm making a toy #lang interpreter for Basic, which allows variables to be
> created with an assignment
3 matches
Mail list logo