Append lit-path
[1/3] from: ammon:rcslv at: 18-May-2002 21:12
Hello Anton,
Somehow your email program seems to be dropping your subjects. (or are you
not typing them?)
I have run into this problem sometimes and it has to do with the conversion
of a lit-path to other data-types. Try this at the console;
>> to string! 'some/path/value
== "somepathvalue"
To me that is *very* anoying! I personally think that it aught to leave the
slashes in there when converting to string, but that is just me. Anyone else?
HTH
Ammon
A short time ago, Anton, sent an email stating:
[2/3] from: ingo::2b1::de at: 21-May-2002 9:00
Hi Ammon, Anton,
Ammon Johnson wrote:
<..>
> I have run into this problem sometimes and it has to do with the conversion
> of a lit-path to other data-types. Try this at the console;
<<quoted lines omitted: 3>>
> To me that is *very* anoying! I personally think that it aught to leave the
> slashes in there when converting to string, but that is just me. Anyone else?
Well, string conversion of paths is consistent with blocks:
>> to-string 'a/b/c
== "abc"
>> to-string [ a b c ]
== "abc"
>> any-block? 'a/b/c
== true
To preserve slashes, use form:
>> form 'a/b/c
== "a/b/c"
>> append %a/ form 'b/c
== %a/b/c
Kind regards,
Ingo
[3/3] from: ammon:rcslv at: 20-May-2002 17:34
Hi,
A short time ago, Ingo Hohmann, sent an email stating:
> Hi Ammon, Anton,
> Well, string conversion of paths is consistent with blocks:
<<quoted lines omitted: 9>>
> >> append %a/ form 'b/c
> == %a/b/c
Thanks for the tip, I will find that extremely handy!
Thanks!!
Ammon
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted