Add a line like:
 
(bake "apple")
 
The define form defines a procedure, but nothing happens untill that
procedure is called.
Jos


  _____  

From: [email protected] [mailto:[email protected]]
On Behalf Of Carolyn Oates
Sent: 22 May 2011 18:18
To: [email protected]
Subject: [racket] Printing and doing something does neither - why?


Hi,
I am wanting to both print something and do something.
I found an example in the Racket guide p.20 sec.2.2.1
Only nothing comes back in the interactions.
It runs fine - no errors, but appears to do nothing.


Both printf and string-append are suppose to be in racket and racket/base.
Any ideas?
Thanks, Carolyn


The code: (using Racket ver.5.1.1)
#lang racket
(require racket/base)


(define (bake flavor)
(printf "pre-heating oven...\n")
(string-append flavor " pie"))


_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to