Source

Hello world:

	trylon hello-world

	main: arguments
		send: "Hello world!"

Or, using a new class:

	trylon hello-world

	class Halloer
		say-it
			send: "Hello!"
	
	main: arguments
		halloer = Halloer new
		halloer say-it


Tags: language   object   native  

Last modified 07 October 2024