Re: Euphoria 2.4 Alpha-test Release!
Hi Rob, you wrote:
> The 2.4 Alpha-test release is now ready!
>
> The release notes are here:
>
> http://www.RapidEuphoria.com/relnotes24.htm
>
> The Public Domain Files are here:
>
> http://www.RapidEuphoria.com/download.htm
[...]
Thank you for this nice birthday present!
Here are my first experiences (DOS and Windows interpreter).
1) Installation:
- I installed Eu 2.4a into a directory with a long name
('c:\programme\euphoria'). The installation procedure then used
long names for the PATH and EUDIR variables in 'autoexec.bat'.
Shouldn't short names be used there?
- I would appreciate it, if the installation procedure made a backup
of 'autoexec.bat', before changing it. But I don't know, whether
Inno Setup can do this.
2) dir() with wildcards and a backslash at the end of the specification:
Thanks for fixing it. But now I detected an inconsistency.
- Using ex.exe, 'dir("c:\\windows\\co*\\")' returned only directories
('COMMAND','COOKIES',...), as I expected.
- Using exw.exe, 'dir("c:\\windows\\co*\\")' returned directories, and
also files!
BTW: When I run the command 'dir c:\windows\co*\' from the DOS prompt
(DOS 7.1), an error is returned, while 'dir c:\windows\co*'
works.
3) DOS LFN support:
Under Windows 98/1st ed., there is less DOS LFN support with Eu 2.4a
than with Eu 2.3:
+ = LFN supported
- = no LFN supported
| Euphoria |
Windows 98/1st ed. | 2.3 | 2.4a |
============================+=====+======+
current_dir() | - | - |
----------------------------+-----+------+
chdir() | - | - |
----------------------------+-----+------+
dir() input w/o wildcards | + | - |
input with wildcards | - | - |
output | - | - |
----------------------------+-----+------+
open() existing file | + | + |
new file | - | - |
----------------------------+-----+------+
4) I've tweaked pretty_print() a little. By just changing one line in
rPrint(), I got the nice additional possibility 4 for the first
option:
----------=----------=----------=----------=----------
procedure rPrint(object a)
-- recursively print a Euphoria object
sequence sbuff
integer multi_line, all_ascii
if atom(a) then
if integer(a) then
sbuff = sprintf(pretty_int_format, a)
-- if pretty_ascii and --* original
if 0 < pretty_ascii and pretty_ascii < 4 and --* new
...
----------=----------=----------=----------=----------
After making this change, please try for instance:
----------=----------=----------=----------=----------
include misc.e
pretty_print(1, {100, "Test", {"AB", "Huhu"}}, {4})
puts(1, "\n")
pretty_print(1, {100, "Test", {65, 66, "Huhu"}}, {4})
puts(1, "\n")
pretty_print(1, {100, "Test", {65, 66, 67}}, {4})
----------=----------=----------=----------=----------
5) Documentation of sort():
Nothing special with version 2.4, I just came across it.
I think it would be valuable to mention, whether or not the sorting
of sort() is stable, along with a short explanation for beginners,
what that means.
Thanks again for keeping up the good work with Euphoria!
Best regards,
Juergen
--
/"\ ASCII ribbon campain | while not asleep do
\ / against HTML in | sheep += 1
X e-mail and news, | end while
/ \ and unneeded MIME |
|
Not Categorized, Please Help
|
|