General Beginner Issues
- Posted by Kirkkaf13 Jul 15, 2013
- 3158 views
Hello everyone,
Sorry I couldn't be more specific with the title I have a range of queries/issues.
[1]First of all I am a little confused after reading the documentation on atoms and sequences, as these are the only data objects in Euphoria.
All data objects in Euphoria are either atoms or sequences.
As I understand these vary from memory allocated the update as needed. Then I came across the normal integer data type, so now I have a choice between using an atom or integer? I must of misunderstood the documentation.
[2]If I run the following example; EDITED I think it was something to do with puts (I thought this was the same as print).
puts(1, "Hello, World\n")
As expected I get the words "Hello World" printed within the console. Now I attempted to do the same with a simple calculation;
integer x = 2 puts(1, x+x)
I get a symbol within the console and not the calculated answer, what am I doing wrong?
[3]Can someone explain how I can declare a string variable, is this using sequence?
Thank you for your time and I apologise if my questions are very basic.
Kirk