tonyg changed the topic of #racket to: The Racket Programming Language -- https://racket-lang.org/ -- https://gather.town/app/wH1EDG3McffLjrs0/racket-users -- http://pasterack.org -- logged at https://libera.irclog.whitequark.org/racket/ -- This is the right place to ask for help with (Dr)Racket. Remember to wait around for an answer!
badkins has joined #racket
skapata has joined #racket
badkins has quit [Remote host closed the connection]
morte_ has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 250 seconds]
monkey_ has joined #racket
morte_ has quit [Ping timeout: 252 seconds]
jeosol has joined #racket
badkins has joined #racket
morte has quit [Ping timeout: 250 seconds]
lucasta has quit [Remote host closed the connection]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Remote host closed the connection]
ormaaaj has quit [Ping timeout: 248 seconds]
monkey_ is now known as morte
morte has quit [Ping timeout: 276 seconds]
badkins has joined #racket
skapata has quit [Remote host closed the connection]
badkins has quit [Ping timeout: 252 seconds]
codaraxis has joined #racket
codaraxis__ has joined #racket
codaraxis__ has quit [Remote host closed the connection]
codaraxis__ has joined #racket
DragonMaus has quit [Quit: No Ping reply in 180 seconds.]
DragonMaus has joined #racket
codaraxis has quit [Ping timeout: 248 seconds]
ur5us has quit [Ping timeout: 250 seconds]
m5zs7k has quit [Ping timeout: 265 seconds]
m5zs7k has joined #racket
shawnw has joined #racket
m1dnight has quit [Read error: Connection reset by peer]
m1dnight has joined #racket
codaraxis__ has quit [Ping timeout: 250 seconds]
ur5us has joined #racket
ur5us has quit [Ping timeout: 246 seconds]
ur5us has joined #racket
Kratacoa has quit [Ping timeout: 250 seconds]
ormaaj has quit [Write error: Connection reset by peer]
munksgaard has quit [Read error: Connection reset by peer]
jryans has quit [Write error: Connection reset by peer]
undltd has quit [Read error: Connection reset by peer]
pounce has quit [Ping timeout: 246 seconds]
pounce has joined #racket
ormaaj has joined #racket
ormaaj1 has joined #racket
munksgaard has joined #racket
undltd has joined #racket
jryans has joined #racket
ur5us has quit [Ping timeout: 260 seconds]
jryans has quit [Ping timeout: 248 seconds]
ormaaj1 has quit [Ping timeout: 248 seconds]
munksgaard has quit [Ping timeout: 260 seconds]
undltd has quit [Ping timeout: 252 seconds]
mwnaylor has quit [Ping timeout: 250 seconds]
ormaaj1 has joined #racket
munksgaard has joined #racket
jryans has joined #racket
scubagear has quit [Ping timeout: 240 seconds]
scubagear has joined #racket
undltd has joined #racket
jeosol has quit [Quit: Client closed]
badkins has joined #racket
jryans has quit [Write error: Connection reset by peer]
ormaaj1 has quit [Write error: Connection reset by peer]
undltd has quit [Write error: Connection reset by peer]
munksgaard has quit [Write error: Connection reset by peer]
badkins has quit [Ping timeout: 276 seconds]
ormaaj1 has joined #racket
munksgaard has joined #racket
undltd has joined #racket
jryans has joined #racket
skapata has joined #racket
badkins has joined #racket
jeosol has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
shawnw has quit [Quit: Konversation terminated!]
ormaaj has quit [Quit: bye]
scubagear has quit [Ping timeout: 246 seconds]
scubagear has joined #racket
badkins has quit [Remote host closed the connection]
scubagear has quit [Ping timeout: 240 seconds]
badkins has joined #racket
scubagear has joined #racket
codaraxis has joined #racket
codaraxis has quit [Max SendQ exceeded]
codaraxis has joined #racket
lucasta has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
codaraxis has quit [Ping timeout: 240 seconds]
ormaaj has joined #racket
Putonlalla has joined #racket
<Putonlalla> The documentation for `racket/sandbox` tells me that `(define sicp-eval (make-evaluator 'sicp sexpr))` and `(define sicp-eval (make-evaluator 'sicp)) (sicp-eval sexpr)` should work the same.
<Putonlalla> However, the former cannot catch exceptions regardless of `sandbox-propagate-exceptions` being set with `parameterize`, and the latter fails on `#%require` not being at top level.
<Putonlalla> What is the correct way to read, analyze and (only then) evaluate a module inside a sandbox?
badkins has quit [Remote host closed the connection]
ampersam has joined #racket
badkins has joined #racket
<ampersam> I'm trying to bind the text-field% here so I can send get-editor and get-text inside its own callback https://paste.sqt.wtf/8a8ccd@raw
<ampersam> I get 'define not allowed in an expression context'
<ampersam> am I on the right track? is it even possible to do this?
badkins has quit [Ping timeout: 250 seconds]
badkins has joined #racket
dTal is now known as DTAL
<bremner> ampersam: it looks like extra parens before (set-field! to me)
DTAL is now known as dTal
<bremner> ampersam: did you maybe want a begin form?
<bremner> there might be an implicit begin, I forget
badkins has quit [Remote host closed the connection]
badkins has joined #racket
<ampersam> bremner: the extra paren is because i want to set-field! to enable the dialog window then create the text field inside goto-dialog
<bremner> ampersam: that's not how racket work. The extra parens make a function call
<bremner> to get sequencing, you can use (begin ). Some forms have built in (begin ), depending on #lang
<ampersam> i added a begin and I get 'the last form is not an expression'
<bremner> can you paste the new version?
<bremner> (to some pastebin site)
<ampersam> bremner: You are attempting to paste 1000000 lines to #racket, ^C to cancel ^K to continue :^)
<bremner> ah, so just the set-field! and the define in the lambda? what should it return?
<bremner> you can put (void) at the end, if it isn't supposed to return anything
<ampersam> does it need a return? I'm creating widgets, it will draw the widgets and I don't need a return value for later use
<ampersam> oh let me try
<ampersam> the (void) would be in the tail of the lambda correct?
<ampersam> hey that worked! I didn't realize that you had to toss the return
<ampersam> thank you
<samth> Putonlalla: With the second one, everything seems to work for me
FreeFull has joined #racket
<Putonlalla> Wrapping that in `(parameterize ((sandbox-propagate-breaks #f) (sandbox-propagate-exceptions #f)) ...)` has no effect, samth.
<samth> you have to do that when you create the evaluator
<Putonlalla> I know, but it still has no effect. Try it.
<samth> > (define sicp-eval (parameterize ([sandbox-propagate-exceptions #f]) (make-eval
<samth> Putonlalla: I just tried this, and it worked for me:
<samth> > (sicp-eval '(+ 1 "foo"))
<samth> uator 'sicp)))
<Putonlalla> I wonder if I still get an exception, because I have version 8.3 installed.
<Putonlalla> I'll get back to you after trying this with a newer version.
lucasta has quit [Remote host closed the connection]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
jeosol has quit [Quit: Client closed]
skapata has quit [Read error: Connection reset by peer]
mwnaylor has joined #racket
jeosol has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 250 seconds]
ur5us has joined #racket
Tuplanolla has joined #racket
<Tuplanolla> I tried it with version 6.11 and still get an exception.
<Tuplanolla> The change must be recent and not a regression.
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 252 seconds]
Tuplanolla has quit [Quit: Leaving.]
skapata has joined #racket
FreeFull has quit []
lucasta has joined #racket
codaraxis has joined #racket
jeosol has quit [Quit: Client closed]