Kevo
1 program
Added 2026-03-12T12:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 3f7c191a3c · authored 2026-03-12T05:58:39+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
Counter Prototype
Provenance: commit 3f7c191a3c · authored 2026-03-12T05:58:39+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
"Kevo prototype-based object example"
"A. Taivalsaari, Nokia Research Center, 1992"
"Kevo: a prototype-based language"
"Create a counter prototype by copying the root Object"
counter := Object copy.
counter addIV: #count withValue: 0.
counter addMethod: #increment body: [count := count + 1].
counter addMethod: #decrement body: [count := count - 1].
counter addMethod: #reset body: [count := 0].
counter addMethod: #value body: [^count].
"Increment the counter a few times"
counter increment.
counter increment.
counter increment.
counter decrement.
Transcript showNl: counter value printString.
"Create a derived counter starting at 10"
bigCounter := counter copy.
bigCounter reset.
bigCounter count: 10.
bigCounter increment.
bigCounter increment.
Transcript showNl: bigCounter value printString.