<br><br><div class="gmail_quote">On Wed, Oct 7, 2009 at 9:44 PM, John M McIntosh <span dir="ltr">&lt;<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Well we used URI with great success in Sophie, since we could use a relative path then resolve it to a network path, file system path, or a specialized in memory path in order to store book objects in those<br>
three storage areas.<br>
<br>
But a few things come to mind for example we could someone do<br>
<br>
        foo := CPlatform homeDirectory or documentDirectory or tempDirectory or musicDirectory and it would mostly do the right thing based on the platform to construct a URI.<br>
<br>
then what if you did<br>
<br>
        fum := CPlatform homeDirectory , &#39;myStuff&#39; , &#39;calledWhat&#39; , &#39;where.txt&#39; .<br>
<br></blockquote><div><br></div><div>I find this horribly confusing.  e.g.</div><div><br></div><div> fum := CPlatform homeDirectory , &#39;myStuff&#39; , (&#39;called&#39; , &#39;What&#39;), &#39;where.txt&#39; .</div><div>
<br></div><div>slash is much much better IMO.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
using the &#39;,&#39; operator to concatenate a path together. Then a method to return the proper path based on the type you want, and of course the platform specific details.<br>
<br>
        platformDirectoryPath = fum asFileSytemDirectoryPath.<div><div></div><div class="h5"><br>
<br>
<br>
On 2009-10-07, at 9:04 PM, Andreas Raab wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
K. K. Subramaniam wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wednesday 07 Oct 2009 10:26:48 pm Nicolas Cellier wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In st80, there was also a nice feature: * and ? would also apply to any<br>
part of the hierarchy<br>
like: /home/nice/squeak/*/*.cs<br>
</blockquote>
Since Squeak is a VM accessing filesystem on its host, shouldn&#39;t we be using URLs in the image and let FilePlugin resolve it into pathnames?<br>
</blockquote>
<br>
I&#39;m not particularly in favor of that option in tools that actually expose the file names to users. When you type file paths in, it just feels wrong to type, e.g., /c/users/andreas/; and typing file:///C:/users/andreas/ is just plain awful (yes, that&#39;s *three* slashes after the colon - copied right out of firefox).<br>

<br>
It would be more useful if slashes could be universally used in code though; having to write stuff like<br>
<br>
 foobar := (FileDirectoy default directoryNamed: &#39;foo&#39;) directoryNamed: &#39;bar&#39;.<br>
<br>
is every bit as awful. Perhaps a binary operator #/ would be in order? I.e.,<br>
<br>
 foobar := FileDirectory default / &#39;foo&#39; / &#39;bar&#39;.<br>
<br>
(although this overloads the meaning of #/ which is not great either)<br>
<br>
Cheers,<br>
 - Andreas<br>
<br>
</blockquote>
<br></div></div><font color="#888888">
--<br>
===========================================================================<br>
John M. McIntosh &lt;<a href="mailto:johnmci@smalltalkconsulting.com" target="_blank">johnmci@smalltalkconsulting.com</a>&gt;   Twitter:  squeaker68882<br>
Corporate Smalltalk Consulting Ltd.  <a href="http://www.smalltalkconsulting.com" target="_blank">http://www.smalltalkconsulting.com</a><br>
===========================================================================<br>
<br>
<br>
<br>
<br>
<br>
</font></blockquote></div><br>