<br><br>---------- Forwarded message ----------<br>From: <b>Danny Yoo</b> <br>Date: Friday, April 6, 2012<br>Subject: [racket] display problem<br>To: Roelof Wobben <<a href="mailto:r.wobben@home.nl">r.wobben@home.nl</a>><br>
Cc: Danny Yoo <<a href="mailto:dyoo@cs.wpi.edu">dyoo@cs.wpi.edu</a>><br><br><br><br><br>On Friday, April 6, 2012, Roelof Wobben wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Op 5-4-2012 20:29, Danny Yoo schreef:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I start with this :<br>
<br>
aaaaa|<br>
</blockquote>
<br>
Concretely, what does the editor world value look like at this point?<br>
You're representing the state somewhat ambiguously. Can you represent<br>
the above in terms of (make-editor ... ...)?<br>
<br>
<br>
</blockquote>
<br>
Yes, (make-editor aaaaaa a """)</blockquote><div><br></div><div>This can't be, as make-editor can only take two strings. The structure definition of make editor is:</div><div><br></div><div> (define-struct editor (pre post))</div>
<div><br></div><div>Where both pre and post are both strings.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
now someone press 3 times the left key.<br>
So I have aa/aaa<br>
</blockquote>
<br></blockquote></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
rep has he value of aaaaa<br>
s has the value of a<br>
t has also the value of a.<br>
</blockquote><div><br></div><div><br></div><div>You make the same conceptual mistake here. This representation does not fit the shape of the structure definition.<span></span></div><div><br></div><div><br></div><div>Go back and make sure you understand the data definition. If you have questions about it, please feel free to ask.</div>
<br>