[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: User-defined record types
From: |
Lars Brinkhoff |
Subject: |
Re: User-defined record types |
Date: |
Tue, 14 Mar 2017 15:28:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
> If you pass (:named foo) to cl-defstruct, foo will be put in list or
> vector slot 0, so I suppose that should work for records too.
>
> If you don't use the :named option, it seems there will be no type
> information in the instances.
I see now this is wrong, and there are more cases to consider.
This is the situation as of now:
- If you don't pass the :type option to cl-defstruct, you get a
cl-struct-FOO type tag in slot 0.
- If you pass :type but not :named, you don't get any type tag.
- If you pass :type and :named, you get a type tag in slot 0, which is
the same symbol as the struct name.
- Re: Elisp printer, (continued)
- Re: Elisp printer, Lars Brinkhoff, 2017/03/08
- Re: Elisp printer, Stefan Monnier, 2017/03/08
- Re: Elisp printer, Lars Brinkhoff, 2017/03/09
- User-defined record types, Lars Brinkhoff, 2017/03/14
- Re: User-defined record types, Lars Brinkhoff, 2017/03/14
- Message not available
- Message not available
- Re: User-defined record types, Lars Brinkhoff, 2017/03/14
- Re: User-defined record types,
Lars Brinkhoff <=
- Re: User-defined record types, Stefan Monnier, 2017/03/14
- Re: User-defined record types, Lars Brinkhoff, 2017/03/14
- Re: User-defined record types, Stefan Monnier, 2017/03/15
- Re: User-defined record types, Lars Brinkhoff, 2017/03/15
- Re: User-defined record types, Stefan Monnier, 2017/03/15
- Re: User-defined record types, Lars Brinkhoff, 2017/03/15
- Re: User-defined record types, Stefan Monnier, 2017/03/15
- Re: User-defined record types, Lars Brinkhoff, 2017/03/15
- Re: User-defined record types, Stefan Monnier, 2017/03/15
- Re: User-defined record types, Stefan Monnier, 2017/03/15