<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
I have a function which, at the moment, is performing manual
dispatch:<br>
<br>
<tt> (cond ((something1? e) (go-1 s))<br>
((something2? e) (go-2 s))<br>
(...))</tt><br>
<br>
Do you have any suggestions on how to avoid this manual dispatch?<br>
<br>
José Lopes<br>
<br>
On 04-04-2011 16:29, Shriram Krishnamurthi wrote:
<blockquote
cite="mid:BANLkTikiSg_-bfE3yerNOXm0gQJHXwX7_Q@mail.gmail.com"
type="cite">
<p>Approximate our reconstruct?</p>
<p>--<br>
Pardon terseness and mistakes -- sent from phone.</p>
<div class="gmail_quote">On Apr 4, 2011 11:24 AM, "Matthias
Felleisen" <<a moz-do-not-send="true"
href="mailto:matthias@ccs.neu.edu">matthias@ccs.neu.edu</a>>
wrote:<br type="attribution">
> <br>
> Types are compile-time entities. They don't exist at
run-time, so you can't query them at run-time. <br>
> <br>
> If you mean the type-tags of objects, we don't provide
direct access. You can approximate it ... <br>
> <br>
> -- Matthias<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> On Apr 4, 2011, at 11:18 AM, José Lopes wrote:<br>
> <br>
>> Hello,<br>
>> <br>
>> How do I query the type of an expression?<br>
>> <br>
>> Regards,<br>
>> José Lopes<br>
>> <br>
>> -- <br>
>> José António Branquinho de Oliveira Lopes<br>
>> 58612 - MEIC-A<br>
>> <a moz-do-not-send="true"
href="mailto:jose.lopes@ist.utl.pt">jose.lopes@ist.utl.pt</a><br>
>> <br>
>> _________________________________________________<br>
>> For list-related administrative tasks:<br>
>> <a moz-do-not-send="true"
href="http://lists.racket-lang.org/listinfo/users">http://lists.racket-lang.org/listinfo/users</a><br>
> <br>
> <br>
> _________________________________________________<br>
> For list-related administrative tasks:<br>
> <a moz-do-not-send="true"
href="http://lists.racket-lang.org/listinfo/users">http://lists.racket-lang.org/listinfo/users</a><br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
José António Branquinho de Oliveira Lopes
58612 - MEIC-A
<a class="moz-txt-link-abbreviated" href="mailto:jose.lopes@ist.utl.pt">jose.lopes@ist.utl.pt</a>
</pre>
</body>
</html>