Linked by Thom Holwerda on Thu 30th Jun 2005 12:26 UTC
General Development For Linux users, HLA is a strong programming tool that allows them to create powerful programs on a variety of different levels. As HLA becomes more feature-rich, additional applications will be written using HLA under Linux. With HLA and Linux, programmers can develop new and exciting applications anyone can use. Read more.
Permalink for comment
To read all comments associated with this story, please click here.
@Randall Hyde
by renoX on Thu 30th Jun 2005 22:38 UTC

> Now as to why HLA doesn't support the C escape sequences,
> well, this isn't necessary in *assembly language*.

Well it isn't *necessary* in C too: with the preprocessor and string concatenation, you can write:
#define nl "13"
printf("toto" nl);
instead of "toton", but apparently K&R thought that the escape sequence was a good idea, and I agree with them: relying on string concatenation to build basic strings isn't "nice".

I'm not sure I understand your justification to use a different escape character, if you send a string 'toton' to a C program, it will see 't','o','t','o',<the ASCII value of n'>,0 and it will work!
No need to have 't','o','t','o','','n',0 passed to the C program!

And about:
> what so good about [cout << "text" << endl]?

I would say: nothing! As shown by the fact that no language after C++ have reused this poor syntax, prooving that this was really not a good idea.

Anyway, you can defend your syntax choice anyway you want, it still remains that quite a few people here found it not very pretty.
Maybe we're too tainted by C, but as the C/Java/C++ number of users is much, much more bigger than the Pascal/Ada's, I have some doubt about HLA success..