The member pragma would allow to attach a function to a type in the same way virtual does it today. Except it doesnt introduce the virtual word in the declaration.
Motivation
Allow users to define members such as regular functions, destructors or other operators.
Abstract
The
member
pragma would allow to attach a function to a type in the same wayvirtual
does it today. Except it doesnt introduce thevirtual
word in the declaration.Motivation
Allow users to define members such as regular functions, destructors or other operators.
Description
Syntax is the same as
virtual
andconstructor
:Code Examples
No response
Backwards Compatibility
No response