On 4/15/05, Dale Jordan <[EMAIL PROTECTED]> wrote: > > For anyone interested, I have attached a version of "match" that works > with the srfi-57 egg. I just append it to srfi-57.scm and reinstall the > extension. In addition to (import records), (import matcher).
Very nice. May I package this as an egg? > > Yes, this is because the types are implemented as chicken structures > with a type of record. I don't know what the ramifications of changing > this are. I made a small hack changing > (define generated-tag (cons #f #f)) > to > (define generated-tag (list 'name)) > > This lets the type show up in the ",d" command in csi. The > generated-tag has to be bound to a new list cell to preserve > "generativity". Generativity prevents inadvertant name clashes from > being confused as the same type and prevents forgery, but it means while > debugging if you change the record definition, any existing records are > no longer accessible. :( I'll change the srfi-57 egg accordingly. > > BTW, felix, the csi help message is wrong about ",<NUM>" invoking the > history mechanism -- it seems "#<NUM>" is the correct syntax. > Oops. Thanks. cheers, felix _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
