Re: Euphoria questions
- Posted by Irv Mullins <irv at ELLIJAY.COM> Jan 03, 1999
- 443 views
On Mon, 4 Jan 1999 00:31:32 +0700, Hendy Irawan <ceefour at INDO.NET.ID> wrote: >Hi Euphoria Programming for MS-DOS, replying to your letter dated Jumat, 1 >Januari 1999... > >> Euphoria is a bit faster, probably because it takes about half >> the code to accomplish the same thing as it does in Pascal. >Ehm? In most cases? Or in few cases? Most. Especially in programs of reasonable complexity - business programs, for example. >> Shorter "include" files = quicker loading. >But anyways TP doesn't use "include files" = quicker execute. It just >uses compiled code all the way, and all the "slowdowns" are all in the >compiling process. Exactly. That's why Euphoria is faster when writing and debugging code. >BTW why did RDS choose interpreted thing? Good question. >> Yes. I would not hesitate to write a major program in Euphoria. >> I may get a chance to do just that, because there are several >> businesses still using programs I wrote years ago (in TP) which >> I will need to update before the Y2K. Maybe I'll re-write some in >> Euphoria. >Hmm... After a few days working with Euphoria, I think it really seem >to make EVERYTHING simpler. Most of it won't allow us to do "hacks" or >things that are sometimes needed to do so... for example optimizing >code for that. And so, there's no pointer. So, what's the replacement? >I've been feeling very comfortable working with it. Why do you need pointers? What hacks? Please give some examples. >And, what's a "record", or "struct", "union" in Euphoria? Moreover >there's no "object", "class", "interface", etc. I think Euphoria should have structures, because they make code clearer and easier to understand, and certainly make file i/o easier. You can implement objects and classes and VMT's if you want, but after coding for 8 or 10 years using OO languages, I'm happy that I am not required to use them in Euphoria. >And how Euphoria will handle type mismatch? Even C/C++ will handle >type mismatch between HGDIOBJ and HWINDOW (even though it's the same >data type. What type mismatch? You can define your own types in Euphoria, to make them as strict as you want. Irv