RetroBASIC

Retrogamecoding(.org) => Other Languages => Topic started by: Tomaaz on September 01, 2018, 02:02:47 PM

Title: EuGTK 4.14.2 released
Post by: Tomaaz on September 01, 2018, 02:02:47 PM
Guys, you need to try it. If you already have working OpenEuphoria on your computer, just download EuGTK, extract the archive and that's it (of course, you need to have GTK installed).  Easy to use, plenty of examples, documentation... Great stuff.

Website - https://sites.google.com/site/euphoriagtk/Home
Title: Re: EuGTK 4.14.2 released
Post by: Cybermonkey on September 01, 2018, 02:47:23 PM
Funny thing, I started a few days ago playing around with EuGTK 4.14.1 and found it really impressive. The only thing is, I need a quick introduction to OpenEuphoria. On the other hand I learned that development stopped. Anyway, it seems a fairly simple to use language.
Title: Re: EuGTK 4.14.2 released
Post by: Tomaaz on September 01, 2018, 03:10:55 PM
You have experience with BASIC, so you shouldn't have a problem with getting basics of Euphoria in a couple of hours. The only thing that is different is that strings are basically sequences of numbers (atoms) and there is no string data type. This is annoying at the beginning, because

Code: [Select]
sequence x = "I like Euphoria"
print(1, x)

will print

Quote
{73,32,108,105,107,101,32,69,117,112,104,111,114,105,97}

The same happens when you use ? x which is shorthand for print(1, x). To print text, you need to use.

Code: [Select]
puts(1, x)

Also, you can declare string using sequence and print it in both ways

Code: [Select]
sequence x = {73,32,108,105,107,101,32,69,117,112,104,111,114,105,97}
puts(1, x & "\n")
print(1, x)

will print

Quote
I like Euphoria
{73,32,108,105,107,101,32,69,117,112,104,111,114,105,97}

The good thing is that you can use all sequence manipulation functions to manipulate strings. Plus you have special functions to make your life easier when working with text. lower an upper are perfect examples here - it would be rather hard to change a case of all characters in a string using sequence manipulation.
Title: Re: EuGTK 4.14.2 released
Post by: ScriptBasic on September 01, 2018, 03:58:08 PM
I'm staying away from languages with no planned future development with an as is status. PowerBasic, FreeBasic are members of this group.
Title: Re: EuGTK 4.14.2 released
Post by: Tomaaz on September 01, 2018, 04:16:13 PM
I'm staying away from languages with no planned future development with an as is status. PowerBasic, FreeBasic are members of this group.

Yes, this is a problem for me, too. While I can use such a language myself, I wouldn't recommend it to a total beginner who wants to learn programming. I posted it here, because there are not so many (none?) real beginners here and even if we have some, they are interested in BASIC and, for them, OpenEuphoria may be an option ( as John already pointed out many BASICs are in the same position).