unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#41983: Reference Manual: Open Question About Magic Metaness of Vtables
@ 2020-06-21 14:27 Sebastian Miele
  0 siblings, 0 replies; only message in thread
From: Sebastian Miele @ 2020-06-21 14:27 UTC (permalink / raw)
  To: 41983

I am on the current master branch. After reading section 6.6.18.4
(Meta-Vtables) of the reference manual there remains an open question.

A structure X made from a meta-vtable becomes a meta-vtable if
standard-vtable-fields is a prefix of the layout in X's field 0. And if
X is a meta-vtable, every structure with X as a vtable must have a valid
layout in field 0.

Suppose the following: standard-vtable-fields accidentally is a prefix
of some valid layout string l. Then

  (define v (make-vtable l))
  (make-struct/no-tail v 'a)

raises an exception, because 'a is not a valid layout. But v may not be
intended to be a meta-vtable, just a vtable. The reference manual does
mention why that can not happen, or why is it accepted that it may
happen.





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-21 14:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-21 14:27 bug#41983: Reference Manual: Open Question About Magic Metaness of Vtables Sebastian Miele

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).