[racket] web applications example problem

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Mon Jul 26 13:21:58 EDT 2010

On Mon, Jul 26, 2010 at 11:13 AM, Sean Allen
<sean at monkeysnatchbanana.com> wrote:
> i started on the web applications blog example a couple weeks ago in
> Dr Racket. Did maybe 5-10 minutes of simple work to play around
> then went to work on other stuff unrelated to racket for a while. I
> decided to start over but just trying to run:
>
>
> #lang web-server/insta
>
> (define-struct post (title body))
>
> (struct post (title body)
>  #:extra-constructor-name make-post)
> title : string?
> body : string?
>
>
> now gets me the error:
>
> module: duplicate definition for identifier in: struct:post

define-struct defines a structure

struct also defines a structure

In the tutorial, content with a faint blue background is
documentation, not code that you should type in. It just so happens
that the structure documentation is valid code for defining it too.

Jay

>
> Apparently something I did before is still hanging around. I'm not
> sure where to look in order to remove.
> Any help would be appreciated. I'm using DrRacket 5 on a Mac.
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://teammccarthy.org/jay

"The glory of God is Intelligence" - D&C 93


Posted on the users mailing list.