[plt-scheme] prop:evt and prop:procedure do not appear to mix

From: YC (yinso.chen at gmail.com)
Date: Sun Jan 24 14:24:28 EST 2010

Great - thanks!

yc

On Sun, Jan 24, 2010 at 7:30 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> This is fixed in SVN, and I think the fix will be included in the
> upcoming 4.2.4 release.
>
> At Thu, 21 Jan 2010 09:55:08 -0800, YC wrote:
> > Hi all -
> >
> > it seems that prop:evt and prop:procedure do not work well together -
> when
> > prop:procedure is specified the struct will no longer be an event.  See
> the
> > code below for example.
> >
> > This is in v4.2.3.  Thanks,
> >
> > yc
> >
> > (define-struct s1 (evt) #:property prop:evt 0)
> >
> > (define-struct s2 (evt) #:property prop:evt 0
> >   #:property prop:procedure (lambda ($s) 1))
> >
> > > (define a1 (make-s1 (make-channel)))
> > > (evt? a1)
> > #t
> > > (define a2 (make-s2 (make-channel)))
> > > (evt? a2)
> > #f
> > _________________________________________________
> >   For list-related administrative tasks:
> >   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100124/c888d67f/attachment.html>

Posted on the users mailing list.