<HTML><BODY>> classes in Racket are themselves *runtime* values<br><br>Thank you. Now I understand. I don't remember any language with classes, except Racket with such feature.<br><br>Usually, either a class is a type, so it is defined in compile-time, or there no classes at all and objects just built on a prototype.<br><br>In Racket any type is a struct, but class is not a struct.<br><br><br>Thu, 03 Apr 2014 08:06:01 -0400 от "David T. Pierson" <dtp@mindstory.com>:<br>
<blockquote style="margin: 10px; padding: 0px 0px 0px 10px; border-left-color: rgb(8, 87, 166); border-left-width: 1px; border-left-style: solid;">
<div>
<div class="js-helper js-readmsg-msg">
<style type="text/css"></style>
<div>
<base href="https://e.mail.ru/" target="_self">
<div id="style_13965274160000000609_BODY">On Tue, Apr 01, 2014 at 09:07:01PM +0400, Roman Klochkov wrote:<br>
> But may I at least look in compile time what fields the class have?<br>
<br>
I'm not particularly knowledgable about classes, but...<br>
<br>
I think the answer is "no". That is what Matthias was showing with his<br>
answer.<br>
<br>
One thing that I didn't see explicitly mentioned is that classes in<br>
Racket are themselves *runtime* values. With respect to your question,<br>
I suspect that is the key difference compared to structs. Someone<br>
besides me would be more capable to elaborate further, or point us to<br>
the portion of the docs which explain it.<br>
<br>
David<br>
____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</div>
<base href="https://e.mail.ru/" target="_self">
</div>
</div>
</div>
</blockquote>
<br>
<br>-- <br>Roman Klochkov<br></BODY></HTML>