[racket-users] REPL - last output capture?

2018-01-13 Thread Michael Rice
In Common Lisp it's *, **, ***. In Racket? Michael -- 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,

[racket] Gui slider#

2013-09-22 Thread Michael Rice
When a slider is oriented horizontally the low value is on the left. Oriented vertically it's at the top. Is there a way to flip the slider to get the low value at the bottom? Michael Racket Users list: http://lists.racket-lang.org/users

Re: [racket] #lang racket/gui

2013-09-22 Thread Michael Rice
What I get is a white vertical line up the left side of my screen which, if I click it, I can get to expand to an empty window with the title "Example." Michael On Sun, Sep 22, 2013 at 10:18 AM, Michael Rice wrote: > Nevermind. It is displaying something up in the left-hand

Re: [racket] #lang racket/gui

2013-09-22 Thread Michael Rice
Nevermind. It is displaying something up in the left-hand corner. Very easy to overlook. Michael On Sun, Sep 22, 2013 at 10:10 AM, Michael Rice wrote: > I'm exploring Racket's Gui Toolkit but I'm having a problem even getting a > frame to "show" in interactive

[racket] #lang racket/gui

2013-09-22 Thread Michael Rice
I'm exploring Racket's Gui Toolkit but I'm having a problem even getting a frame to "show" in interactive mode. Definitions: #lang racket/gui (clicked on run before entering lines below. Interactions: Welcome to DrRacket, version 5.3.6 [3m]. Language: racket/gui; memory limit: 128 MB. > (define

[racket] Accessing an SRFI

2012-08-28 Thread Michael Rice
I haven't used an SRFI for years. What's the extra racket code for accessing one and where is it placed in a code file? Michael Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Lazy Racket?

2012-05-21 Thread Michael Rice
I answered my own question by looking at the language menu, I think. Michael On Mon, May 21, 2012 at 4:02 PM, Michael Rice wrote: > Can I get Racket's graphics capability with lazy Scheme? > > Michael > Racket Users list: http://lists.racket-lang.org/users

[racket] Lazy Racket?

2012-05-21 Thread Michael Rice
Can I get Racket's graphics capability with lazy Scheme? Michael Racket Users list: http://lists.racket-lang.org/users

[racket] SICP/unless

2012-05-19 Thread Michael Rice
>From pg. 399 in SICP: An example that exploits lazy evaluation is the definition of a procedure unless (define (unless condition usual-value exceptional-value) (if condition exceptional-value usual-value)) === Huh? For both applicative and normal order, wouldn't both exceptional-value AND u

[racket] λ vs lambda

2012-05-14 Thread Michael Rice
The code below (kons) gets flagged in R5RS: define: not allowed in an expression context in: (define dispatch (λ (m) (cond ((= m 0) x) ((= m 1) y) (else (error "Argument not 0 or 1 -- KONS" m) Works fine if I replace the lambda symbols with "lambda". Cause? Michael = >From pag

Re: [racket] Trace rejects set!

2011-10-10 Thread michael rice
Thanks, Vincent. I didn't know traces had to be in the program itself. Michael From: Vincent St-Amour To: michael rice Cc: Vincent St-Amour ; Racket Users Sent: Monday, October 10, 2011 1:49 PM Subject: Re: [racket] Trace rejects set! At Mon, 10 Oct

[racket] Trace rejects set!

2011-10-10 Thread michael rice
I'm looking at some old Scheme code and find that the code still works under (#lang racket) but trace is unhappy with  the use of set! in the traced function. set!: cannot modify a constant: next-leaf-generator  I also tried (#lang r5rs) but  it's unhappy with my require. (require racket/trac

Re: [racket] Starting Racket?

2011-10-01 Thread michael rice
Thanks Neil. just figured it out myself. Michael From: Neil Van Dyke To: michael rice Cc: "users@racket-lang.org" Sent: Saturday, October 1, 2011 10:57 AM Subject: Re: [racket] Starting Racket? Remove the "/drracket" from the end of

[racket] Starting Racket?

2011-10-01 Thread michael rice
Just installed the 64-bit Linux Fedora 14 version (I'm using F15), but seem to be having a problem starting it up. [michael@sabal ~]$ ls /usr/racket/bin/drracket /usr/racket/bin/drracket [michael@sabal ~]$ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/michael/bin:/

Re: [racket] Need a namespace

2010-06-24 Thread michael rice
That fixed it. Thanks, Michael --- On Thu, 6/24/10, Noel Welsh wrote: From: Noel Welsh Subject: Re: [racket] Need a namespace To: "michael rice" Cc: users@racket-lang.org Date: Thursday, June 24, 2010, 11:47 AM Nope, it works as documented. Trying changing the language then, fr

Re: [racket] Need a namespace

2010-06-24 Thread michael rice
y and install it for the call to eval:   #lang scheme     (define ns (make-base-namespace))   (eval '(cons 1 2) ns) ; works --- On Thu, 6/24/10, Noel Welsh wrote: From: Noel Welsh Subject: Re: [racket] Need a namespace To: "michael rice" Cc: users@racket-lang.org Date: Thursda

Re: [racket] Need a namespace

2010-06-24 Thread michael rice
eed a namespace To: "michael rice" Cc: users@racket-lang.org Date: Thursday, June 24, 2010, 11:05 AM It works for me... N. On Thu, Jun 24, 2010 at 4:01 PM, michael rice wrote: > > How do I make an empty namespace in DrScheme? > > This doesn't seem to work: > &g

[racket] Need a namespace

2010-06-24 Thread michael rice
How do I make an empty namespace in DrScheme? This doesn't seem to work: #lang scheme (define ns (make-base-namespace)) Michael _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users