[racket-users] Differences running HtDP programs from DrRacket IDE vs racket command line

2020-10-05 Thread Nick Lee
Hello, I noticed there are differences when I run HtDP programs in DrRacket IDE vs the "racket" command line. For example, the following program's test passes in DrRacket IDE: ;; file.rkt - Set to Beginning Student (check-expect (exact? (string->number "1.0")) true) But when I run "raco test

Re: [racket-users] Differences running HtDP programs from DrRacket IDE vs racket command line

2020-10-05 Thread Robby Findler
On Mon, Oct 5, 2020 at 4:32 PM Nick Lee wrote: > > Hello, > I noticed there are differences when I run HtDP programs in DrRacket IDE > vs the "racket" command line. > > For example, the following program's test passes in DrRacket IDE: > > ;; file.rkt - Set to Beginning Student > (check-expect

[racket-users] Racket News - Issue 39

2020-10-05 Thread Paulo Matos
Hi all, Racket News Issue 39 is now here! https://racket-news.com/2020/10/racket-news-issue-39.html Go grab a cuppa and enjoy! -- Paulo Matos -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving

[racket-users] Re: access a `#` from c code

2020-10-05 Thread Nate Griswold
I have a temporary workaround where i have created an ffi function racket-side to call into c, so that i can automatically use the _cptr's racket-to-c function. I wonder if there is a way to manually extract the c value for the case where i want it in a return value of racket_apply. Nate On

[racket-users] access a `#` from c code

2020-10-05 Thread Nate Griswold
What is the best way to access a value that is a cpointer from c code? Should i convert it to an integer? I have been looking at this for a while, about an hour, and will continue to look but just thought the list might be able to answer faster. I know there are chez functions to convert `ptr`s to

[racket-users] Re: access a `#` from c code

2020-10-05 Thread Nate Griswold
Note this is from a return value of racket_apply; i called a racket function from c code and want to store the cptr it has returned. Nate On Mon, Oct 5, 2020 at 3:25 AM Nate Griswold wrote: > What is the best way to access a value that is a cpointer from c code? > Should i convert it to an