dockimbel/Red — Issue #194: Empty struct definitions
Author: Kaj-de-Vos
Created: 2012-01-04 23:34:36+00:00
State: open

I use this form to define opaque structs, of unknown content, for the purpose of type identifications:

gtk-window!: alias struct! [
dummy	[variant!]
]

This is not correct, so I would like to use an empty struct, but this is currently not allowed:

gtk-window!: alias struct! []

*** Compilation Error: invalid struct syntax: []

It would be very useful if this would be allowed, and also if an error would be generated when SIZE? is used on such a struct, because the size is unknown.