Constrained genericity: Difference between revisions
m
→{{header|Wren}}: Changed to Wren S/H
(→{{header|TXR}}: Solution using define-struct-clause.) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
Line 1,723:
=={{header|Wren}}==
Wren is dynamically typed and so any constraint on class instantiation can only be checked at run time.
<syntaxhighlight lang="
class Eatable {
eat() { /* override in child class */ }
|