unofficial mirror of 
 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
(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

^ 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

unofficial mirror of 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror guile-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guile-bugs guile-bugs/ \
	public-inbox-index guile-bugs

Example config snippet for mirrors.
Newsgroups are available over NNTP:

AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git