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

World: r3wp

[SDK]

Volker
19-Jun-2006
[491]
eeks, another bug..
Ladislav
19-Jun-2006
[492]
...and if won't be a file! in case the source wasn't preprocessed
Volker
19-Jun-2006
[493x2]
and the 'change inserts multiple items. should change position.
the äinclude would not, but the %include1.r would.
Ladislav
19-Jun-2006
[495x2]
did you read http://www.fm.tul.cz/~ladislav/rebol/include.html
btw: foreach files [if file?...] is clearly not what you wanted it 
to be...
Volker
19-Jun-2006
[497x2]
i guess i trash that version completely :)
the question was more aboutthe concepts than the implementation *whistle*
Ladislav
19-Jun-2006
[499]
so, did you read the above mentioned description?
Volker
19-Jun-2006
[500x3]
Can your include also expand blocks? then this would work
if not value? 'include[do 5ladislavs-include.r]
include[ all the main code ]
Not yet, thought its like prebol. sorry.
did now.
Ladislav
19-Jun-2006
[503]
Can your include expand blocks?
 - INCLUDE takes only FILE! or URL! argumenta
Volker
19-Jun-2006
[504]
than my exapmle needs an extra file
Ladislav
19-Jun-2006
[505]
it is easy to allow blocks, though, because I implemented this functionality 
anyway
Volker
19-Jun-2006
[506x3]
when 'include is inbuild it is no problem. but if the main script 
must include to include something and want own content too, would 
help.
; 'do of course..
rebol[]
if not value? 'include[do %ladislavs-include.r]
do include[ all the main code ]
no, then the include/link would be confused.
Ladislav
19-Jun-2006
[509x2]
I am using the mouse-click method when I want to INCLUDE something. 
Don't you want to describe how it can be done e.g. in Linux?
(I mean whether you want to write a section describing how to do 
the same in Linux)?
Volker
19-Jun-2006
[511x2]
i would try a bash-script and do the same as with the windows-shortcut.
will try. but i thought about viewtop.  alsthough that one can be 
patched.
Ladislav
19-Jun-2006
[513]
this is the source: http://www.fm.tul.cz/~ladislav/rebol/include.rmd
Volker
19-Jun-2006
[514]
Thanks.
AndrewL
19-Jun-2006
[515x2]
When I #include http:///www.an.example.com/directory/script.rit 
gives an error that it can't find script.r even if I've appended 
the url directory to the include path ... maybe I'm assuming something 
somewhere
The mouse click thing works for me by the way :)
Ladislav
20-Jun-2006
[517x2]
this works for me, did you try something like that?

>> save %test.r [rebol [] #include http://www.fm.vslib.cz/~la
dislav/rebol/lfunc.r]
>> print read %test.r
rebol [] #include http://www.fm.vslib.cz/~ladislav/rebol/lfun
c.r
>> include %test.r
connecting to: www.fm.vslib.cz
connecting to: www.fm.vslib.cz
>>
(sorry for line breaks)
Gabriele
20-Jun-2006
[519]
Andrew: I haven't published the changed prebol. (I was actually hoping 
for Carl to make it the default in the future.) The problem with 
it is that encmdview would still run with the standard prebol since 
it is built into the exe, so you would still have some problems. 
In the end, it's probably better to use Ladislav's INCLUDE function 
as it gives you more flexibility, and I guess it'll become the default 
too in the future.
AndrewL
20-Jun-2006
[520x10]
The following is typed not pasted ...
>> do http://www.fm.vslib.cz/ladislav/rebol/include.r
>> save %test.r [REBOL [] #include http://www.absentis.com/files/rebol/library/libadl/libadl.r]
>> include %test.r
** Access Error: Cannot open /c/Documents and Settings/kccadl.KAS/var/website/files/rebol/scripts/libadl.r
** Where: include-script
** Near: found: load/all target
if header
>>
If I made a typing mistake above it wasn't in the original, as you 
can see I get an error including the file via http, that same file 
works perfectly when i do it ...
Graham
22-Jun-2006
[530x2]
Someone reported this error .. "The file "...exe" contains more than 
one data stream, but the destination volume does not support this 
feature.  Some data will not be preserved as a result" .. what does 
this mean for encapped apps?
Oh, yeah, it also says "Information that will not be preserved includes 
:Zone.identifier:$DATA"
Gabriele
22-Jun-2006
[532x2]
hmm, i think you can safely ignore it. i don't think rebol has anything 
to do with it. NTFS allows for multiple content to be associated 
with a file name, but almost noone is using this feature i think 
(like for links); so something on that system added a data stream 
to the exe file.
i don't know much of how this works - a Windows expert may be of 
more help.
Pekr
27-Jun-2006
[534x3]
new SDK works differently? It does not contain prebol.exe, but it 
contains prerebol.r ...
is it now all done by en-face for .e.g, which first automatically 
calls prerebol?
hehe, now I know, why rebol/view does not mind #include %../sources/view.r 
line :-)) it just interprets it as issue! and file! :-)
BrianH
27-Jun-2006
[537]
Graham, multiple data streams are how Mac files are stored on Windows 
servers. Also, some antivirus programs use the extra streams for 
storing checksum data, some viruses for storing their payload, the 
system for storing file metadata, and various applications for obscure 
reasons. Any file copy program that ignores multiple data streams 
does so at the user's peril. Since there are few such programs written 
in REBOL (Carl's recent blog post notwithstanding), the lack of data 
stream support in REBOL isn't much of a problem for now.
Graham
27-Jun-2006
[538x3]
Interesting ...
So, just plain read and write does not touch the alternate data stream
that must be a trap for anyone writing a file replication tool.