[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Elisp printer
From: |
Tom Tromey |
Subject: |
Re: Elisp printer |
Date: |
Tue, 07 Mar 2017 21:09:50 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
>>>>> "Stefan" == Stefan Monnier <address@hidden> writes:
Stefan> PS: I wish we could have funcallable defstructs, so we could
Stefan> efficiently dispatch on the "type" of functions when those functions
Stefan> are used as objects.
I was wondering about this a while ago and thinking that maybe it could
be done without C changes by repurposing the extra arguments to
make-byte-code. The idea here would be to let cl-defsubst take a new
:type argument other than 'vector or 'list, meaning "use
make-byte-code"; and set the :initial-offset to skip over the stuff
necessary for the bytecode.
It's kind of hacky though. I think it's probably better to just add
funcallable instances directly, and real types of some kind at the same
time.
Tom
- Elisp printer (was: bug#25295: Represent eieio objects using object-print in backtraces and edebug), Michael Heerdegen, 2017/03/02
- Re: Elisp printer,
Tom Tromey <=
- 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, 2017/03/14