Lesson 1
- Posted by "Unkmar" <L3Euphoria at bellsouth.net> Sep 16, 2004
- 423 views
----- Original Message ----- From: "Lobelia Overhill" Sent: Thursday, September 16, 2004 10:57 AM Subject: Re: creating a game ... ? (help!) > > posted by: Lobelia Overhill <lobeliaoverhill at yahoo.com> > [Snip] > > I knew writing a program would take hours and hours - that's not a problem > I don't have a life ... If I'd known I was going to have to turn my brain > inside out in order to learn how to write the appropriate program, I wouldn't > have bothered. Evidently the [obviously scant] knowledge I had of BASIC > isn't helping me here ... > Sorry if that sounds rude, but when something states that it's easy > to use and requires no previous experience I'd expect something that > I can switch on and start using within a few hours, rather like when I > buy a VCR. And I /never/ need to use the manual to do that! > > * batteries not included http://www.hilleyonline.com/ There are some examples there. atom a integer i sequence s object x a = 4.5 -- any number. Whole or decimal. Supports very large numbers. integers are a subset of atoms i = 7 -- Whole numbers only. There is a limit on the size. They can be positive or negative. i = 'A' -- A single number that represnts the letter A. In this case the value is 65. objects can be either a sequence or an atom a sequence is a set of objects a sequence can be just a set of atoms s = {65,66,67} s = {'A', 'B', 'C'} s = "ABC" a sequence can contain other sequences. s = {"one", "two"} s = {{'o','n','e'}, {'t','w','o'}} a sequence can contain a mixture of sequences or atoms s = {"Test", 5, {"more",3, "stuff"}} objects can be either a sequence of an atom x = "my sequence" x = 123.456 unkmar