r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3-OLD1]

Graham
3-Feb-2009
[10385]
>> dir? %asdfsdf/
== false
Henrik
3-Feb-2009
[10386]
it seems it will do this:

- it tests FALSE for an existing file
- it tests FALSE for an existing file and adding a /

- it tests TRUE for a non-existing dir with an ending / <-- bogus?
- it tests TRUE for an existing dir with an ending /
- it tests TRUE for an existing dir without an ending /
Graham
3-Feb-2009
[10387]
crap ... had wrong version of rebol up
Henrik
3-Feb-2009
[10388]
the bogus one would be eliminated with an EXISTS?. still it's a simpler 
way to test for non-existing dirs, say in preferences files for paths 
and some basic syntax checking.
Graham
3-Feb-2009
[10389]
but you also have to check the ending / if you want to form paths
Henrik
3-Feb-2009
[10390]
in R2, we have to do the "#"/" = last file" check
Graham
3-Feb-2009
[10391]
annoying ...
Henrik
3-Feb-2009
[10392x2]
so, I think there should be a function for that, but having it in 
DIR? may be ambiguous.
I'm adding a ticket, just to be sure.
Graham
3-Feb-2009
[10394]
So, we need a function that both checks that file exists, and it's 
a directory?
Henrik
3-Feb-2009
[10395]
so... there should not be a need to port the R2 one, just ask like 
this:

all [
	exists? file
	dir? file
]

That shouldn't hurt the R2 version.
Kaj
3-Feb-2009
[10396]
Even info?/type is incompatible. ´directory for R2 and ´dir for R3
Henrik
3-Feb-2009
[10397]
probably related to ports being different in R3. I'll make a ticket.
Kaj
3-Feb-2009
[10398]
The exists? check is insufficient, because it will return true if 
a regular file exists but the value is written in dir form with a 
trailing /
Henrik
3-Feb-2009
[10399x3]
exists? %/c/msdos.sys
== true

exists? %/c/msdos.sys/
== false
or is it R2? checking...
ah, yes. there is an issue in R2.
Kaj
3-Feb-2009
[10402]
The issue is in R3
Henrik
3-Feb-2009
[10403]
The above code was pasted from R3.
Kaj
3-Feb-2009
[10404x4]
exists? %dark
== true
exists? %dark/
== true
Henrik
3-Feb-2009
[10408]
does %dark exist? I don't get that result.
Kaj
3-Feb-2009
[10409x2]
It´s a regular file
Are you on Windows?
Henrik
3-Feb-2009
[10411x2]
I've tried without a root dir now and I get the same result as I 
pasted above.
yes, XP
Kaj
3-Feb-2009
[10413]
This is WINE
Henrik
3-Feb-2009
[10414x2]
I could test in crossover if I had the diskspace...
I will investigate whether we want WINE related bugs in Curecode.
Kaj
3-Feb-2009
[10416]
There´s no other way to run on Linux
Graham
3-Feb-2009
[10417]
Wine is beta software still .... and AFAIK, the decimal bug is still 
present wrt R2.
Henrik
3-Feb-2009
[10418]
True, but Wine is not a very stable platform. It might be a Wine 
problem.
Graham
3-Feb-2009
[10419]
Though the Wine team has asked us to see if it is still present.
Kaj
3-Feb-2009
[10420x3]
Wine is past 1.0 since a year or so
But that´s beside the point. The only offered way to run on non-Windows 
is on WINE
The root of all evil is pointing fingers at other IT suppliers
Graham
3-Feb-2009
[10423x2]
a little over dramatic ...
especially when wine has been known to be buggy.
Henrik
3-Feb-2009
[10425]
Kaj, there have been Wine related bugs with early R3 alphas before, 
which were then fixed. It's prudent to be cautious.
Kaj
3-Feb-2009
[10426]
You might as well not fix any bugs at all becuase Windows is not 
a very stable platform
Henrik
3-Feb-2009
[10427]
Kaj, isn't the point of Wine to make it behave like Windows?
Kaj
3-Feb-2009
[10428x2]
Note that I´m not saying there should be no bugs; I´m saying bugs 
should be fixed
Isn´t the point of REBOL to be usable?
Henrik
3-Feb-2009
[10430]
yes, when the underlying platform is stable. otherwise you can't 
work with that platform.
Graham
3-Feb-2009
[10431]
Ask Carl to produce a port to Wine ...
Kaj
3-Feb-2009
[10432]
Look, I´m not interested in a philosophical discussion. We waited 
three years to test R3 and now we´re asked to report bugs ASAP. What´s 
the point of fighting it?
Graham
3-Feb-2009
[10433]
But what bugs are you reporting?  A bug with wine??
Kaj
3-Feb-2009
[10434]
A bug in running R3 on Linux