Open
Description
What I would suggest is the following
Foo
becomesAnimal
- Implements
Nameable
increment()
vfunc becomespet()
and returns aSound
(formerRString
). E.g. cats would "purr"incremented
signal becomesmade_sound()
, see above. This can of course also happen independently of callingname
property stays and maps to theNameable
interface- Add a new
lift()
vfunc that either succeeds or returns the (to be written)GError
: "too heavy", "too slippery" (e.g. a fish), "hissed", etc - Add a new
environment
read-only property of typeEnvironment
(the flags type): "house", "garden", "aquarium", whatever
- Implements
Bar
becomesCat
number
property would becomecollar-color
of typeColor
(the enum)
Nameable
can stay the same,Animal
s and other things are usually nameableRString
becomesSound
(or a better name)- Also we'd add accessors for the non-NUL-terminated string plus length without copying
SharedRString
becomesName
(and is used as part ofNameable
). Names are usually used often and immutable- Also we'd add accessors for the non-NUL-terminated string plus length without copying
CC @elmarco what do you think? Any suggestions for improvements or changes? :)
Metadata
Metadata
Assignees
Labels
No labels