Add examples/types_and_objects.claro from Claro v1.17.26 zip

This commit is contained in:
RayPals
2026-06-01 00:54:40 +02:00
parent 56852cc5b0
commit b9c6410490
+18
View File
@@ -0,0 +1,18 @@
SAY "Typed variables and simple objects"
SET score NUMBER 10
SET name TEXT "Jon"
SET ready YESNO YES
CLASS Player
HAS name TEXT
HAS score NUMBER
ENDCLASS
NEW Player AS player
SET player.name TEXT name
SET player.score NUMBER score
SAY player.name
SAY player.score
SAY ready