[plt-scheme] i need help

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Thu Nov 19 08:51:34 EST 2009


In ASL: 

(define-struct city (a b c))

(shared ((neamt (make-city 'neamt 234 (list (list lasi 87))))
         (lasi (make-city 'lasi 226 (list (list "!!!vaslui!!!" 92) (list neamt 87)))))
  (list neamt lasi))

In Module: 

#lang scheme

(define-struct city (a b c))

(define-values (neamt lasi)
  (shared ((neamt (make-city 'neamt 234 (list (list lasi 87))))
           (lasi (make-city 'lasi 226 (list (list "!!!vaslui!!!" 92) (list neamt 87)))))
    (values neamt lasi)))



On Nov 16, 2009, at 7:25 AM, alon arditi wrote:

> im trying to configure constants(strucuts) that have other constants in theyre parameters and vice versa
>  
> for example
> (define neamt(make-city 'neamt 234 (list(list lasi 87))))
> (define lasi(make-city 'lasi 226 (list(list vaslui 92)(list neamt 87))))
>  
> i get error for the first decleration that lasi is not defined
>  
> what to do? please help me
> 
> Windows Live: Keep your friends up to date with what you do online. _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20091119/fe9256c7/attachment.html>

Posted on the users mailing list.