Type | Wish | Status | waiting | Date | 19-Aug-2009 00:36 |
---|---|---|---|---|---|
Version | alpha 78 | Category | Mezzanine | Submitted by | BrianH |
Platform | All | Severity | minor | Priority | normal |
Summary | Could system/script/path work for urls as well? |
---|---|
Description |
Since WHAT-DIR is now a wrapper around the OS current directory, it no longer needs to be the same as system/script/path. This opens up the possibility of having system/script/path be set for scripts loaded from urls as well. This would let the developer use script-relative paths for even remote scripts, just like HTML/JS. If you want the local path you can still use WHAT-DIR. Relative filenames would by default be relative to WHAT-DIR - use of system/script/path would be explicit. |
Example code |
; Script on http://www.rebol.net/blah.r REBOL [] system/script/path ; DOing the script >> do http://www.rebol.net/blah.r == http://www.rebol.net/ |
Assigned to | n/a | Fixed in | - | Last Update | 24-Apr-2014 01:03 |
---|
Comments | |
---|---|
(0001513)
Carl 20-Aug-2009 01:31 |
I've wondered the same thing at times, but we should check with the community to see if they all agree or if there are any objections to this and what impact it may have.
|
(0001536)
BrianH 20-Aug-2009 23:59 |
It turns out that parsing the URL is required, because you can't rely on the last / being the directory delimiter if there is no trailing / after the hostname. Is this too much overhead? |
(0004408)
rgchris 24-Apr-2014 01:03 |
Don't know if the overhead is excessive, however the ability to call scripts from a script relative to that script's remote location could prove useful. |
Date | User | Field | Action | Change |
---|---|---|---|---|
24-Apr-2014 01:03 | rgchris | Comment : 0004408 | Added | - |
20-Aug-2009 23:59 | BrianH | Comment : 0001536 | Added | - |
20-Aug-2009 01:31 | carl | Status | Modified | reviewed => waiting |
20-Aug-2009 01:31 | carl | Comment : 0001513 | Added | - |
20-Aug-2009 01:28 | carl | Description | Modified | - |
20-Aug-2009 01:28 | carl | Code | Modified | - |
20-Aug-2009 01:28 | carl | Status | Modified | submitted => reviewed |
19-Aug-2009 00:36 | BrianH | Ticket | Added | - |