[racket] Reading graph structure

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Thu Aug 18 09:25:06 EDT 2011

On Aug 18, 2011, at 9:09 AM, Harry Spier wrote:

> When I put (#1=100 #1# #1#) in either the definitions or interactions window  I get 
> 
> . read: #..= expressions not allowed in read-syntax mode


In these areas, read-syntax takes over. Enter 

 (read) 

at the prompt. Type 
  
  #0=(1 . #0#)

into the input box that appears. 



> Also I'm not clear how #0=(1 . #0#)  converts to 
> (let ([v (cons 1 #f)])  
>      (set-cdr! v v) v)


That is indeed a strange thing considering that set-cdr! is no longer a part of the language :-) 


-- Matthias





Posted on the users mailing list.