[racket] TLS "atom?" definition for Scheme does not work in DrRacket

From: Alexander D. Knauth (alexander at knauth.org)
Date: Tue Mar 3 22:55:50 EST 2015

When I run this program:
(define atom? (lambda (arg1)
                (and (not (pair? arg1))
                     (not (null? arg1)))))
(define and 'dummy)
It highlights the `and` in the `(define and ‘dummy)`, and gives me this error message:
define: expected a variable name, or a function name and its variables (in parentheses), but found a keyword

Do you not get an error message like that?  If you don’t it looks like a bug.  
Or could there possibly be some setting that turns off error messages or something?


On Mar 3, 2015, at 10:47 PM, Rufus <rlaggren at mail.com> wrote:

> Daniel
> 
> 
> Thanks for your interest.
> 
> Any reference to any definition (supposed) from the I-pane throws an
> "undefined" error; there are no apparent errors when click Run
> immediately after I load the definition file. I'm not going to worry
> about it too much at this point. It's probably a simple noobie problem
> and my main thrust is to get through TLS as effectively (maybe not as
> fast) as possible and I think the "racket" spec will let me do that.
> 
> If I get sand-bagged by TLS I'll probably try setting up a new
> definitions file with only one or two lines and seeing what I can promote.
> 
> 
> Rufus
> 
> 
> 
> On 03/03/2015 09:37 PM, Daniel Feltey wrote:
>>> It apparently doesn't run the defs _at all_. The interactive pane will
>>> not recognize _any_ of the variables or functions that appear to be
>>> defined in the definition pane and should form the environment (or scope
>>> or whatever the correct word) after I click on the "Run" button. And I
>>> don't see any error msg's anywhere. I'm probably missing something
>>> simple and dumb here like the reserved word problem; but so far no light
>>> bulbs...
>> 
>> This is certainly not the expected behavior of any of the teaching languages. You say that none of the definitions seem to be recognized in the interactions window after you click the run button? Does this mean that when you try to reference a defined value you get an error? Or what exactly is happening when you try to use one of your definitions in the interactions window?
>> 
>> Dan
>> 
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users



Posted on the users mailing list.