Add support for record types in GOOPS methods?

2014-10-21 Thread Dave Thompson
Hello all, Last night, I encountered what I consider to be a frustrating limitation of GOOPS methods: They do not support record type descriptors, only classes. This makes it difficult to take advantage of generic procedures without also buying into the rest of the GOOPS system. Here's some

Re: Add support for record types in GOOPS methods?

2014-10-21 Thread Panicz Maciej Godek
2014-10-21 16:57 GMT+02:00 Dave Thompson dthomps...@worcester.edu: Hello all, Last night, I encountered what I consider to be a frustrating limitation of GOOPS methods: They do not support record type descriptors, only classes. This makes it difficult to take advantage of generic

Re: Add support for record types in GOOPS methods?

2014-10-21 Thread Thompson, David
On Tue, Oct 21, 2014 at 11:37 AM, Panicz Maciej Godek godek.mac...@gmail.com wrote: Hi! As I managed to find out, the (define-record-type t ...) also introduces a GOOPS class named t. Following your example, you'd need to define your method in the following way: (define-method (foobar (foo