-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
What I would suggest is the following
FoobecomesAnimal- Implements
Nameable increment()vfunc becomespet()and returns aSound(formerRString). E.g. cats would "purr"incrementedsignal becomesmade_sound(), see above. This can of course also happen independently of callingnameproperty stays and maps to theNameableinterface- 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
environmentread-only property of typeEnvironment(the flags type): "house", "garden", "aquarium", whatever
- Implements
BarbecomesCatnumberproperty would becomecollar-colorof typeColor(the enum)
Nameablecan stay the same,Animals and other things are usually nameableRStringbecomesSound(or a better name)- Also we'd add accessors for the non-NUL-terminated string plus length without copying
SharedRStringbecomesName(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? :)
zeenix, elmarco and rafaelcariciozeenix, Hofer-Julian and viviarafaelcaricio
Metadata
Metadata
Assignees
Labels
No labels