load vs load-thru (vs load path-thru)
[1/1] from: anton::lexicon::net at: 8-Apr-2002 17:20
Hello,
I've come to an inconsistency, I think.
I reckon load-thru should return the same
results as load, and it doesn't.
>> site: http://anton.idatam.com.au/rebol/
== http://anton.idatam.com.au/rebol/
>> url: site/anim/images/iconDilbert.png
== http://anton.idatam.com.au/rebol/anim/images/iconDilbert.png
>> load url
== make image! [64x48 #{
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000...
>> exists? path-thru url
== false ; not in the public cache
>> load-thru/update url
== ‰PNG ; <--------- why this? shouldn't it be an image! as above?
>> exists? path-thru url
== true ; now it is in the cache
>> load path-thru url ; ok, so I can get the data in the end...
== make image! [64x48 #{
000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000...
Anton.