Gwydion Dylan
1 program
Added 2026-02-26T15:54:50Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled
Evidence
Report issue
View issues
Aliases: Gwydion
Provenance: commit fa9bf66d7a · authored 2026-02-26T16:55:19+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Vehicle class hierarchy with polymorphic tax dispatch
Provenance: commit fa9bf66d7a · authored 2026-02-26T16:55:19+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
Module: vehicles
define class <vehicle> (<object>)
slot serial-number :: <integer>,
required-init-keyword: sn:;
slot owner :: <string>,
init-keyword: owner:,
init-value: "Northern Motors";
end class <vehicle>;
define class <car> (<vehicle>)
end class <car>;
define class <truck> (<vehicle>)
slot capacity :: <integer>,
required-init-keyword: capacity:;
end class <truck>;
define method tax(v :: <vehicle>)
=> tax-in-dollars :: <float>;
100.00;
end;
define method tax(c :: <car>)
=> tax-in-dollars :: <float>;
50.00;
end method;
define method tax(t :: <truck>)
=> tax-in-dollars :: <float>;
next-method() + t.capacity * 10.00;
end method;