Great - thanks! <br><br>yc<br><br><div class="gmail_quote">On Sun, Jan 24, 2010 at 7:30 AM, Matthew Flatt <span dir="ltr"><<a href="mailto:mflatt@cs.utah.edu">mflatt@cs.utah.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This is fixed in SVN, and I think the fix will be included in the<br>
upcoming 4.2.4 release.<br>
<div><div></div><div class="h5"><br>
At Thu, 21 Jan 2010 09:55:08 -0800, YC wrote:<br>
> Hi all -<br>
><br>
> it seems that prop:evt and prop:procedure do not work well together - when<br>
> prop:procedure is specified the struct will no longer be an event. See the<br>
> code below for example.<br>
><br>
> This is in v4.2.3. Thanks,<br>
><br>
> yc<br>
><br>
> (define-struct s1 (evt) #:property prop:evt 0)<br>
><br>
> (define-struct s2 (evt) #:property prop:evt 0<br>
> #:property prop:procedure (lambda ($s) 1))<br>
><br>
> > (define a1 (make-s1 (make-channel)))<br>
> > (evt? a1)<br>
> #t<br>
> > (define a2 (make-s2 (make-channel)))<br>
> > (evt? a2)<br>
> #f<br>
</div></div>> _________________________________________________<br>
> For list-related administrative tasks:<br>
> <a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br>
</blockquote></div><br>