<div class="gmail_quote">2009/11/21 Colin Putney <span dir="ltr"><<a href="mailto:cputney@wiresong.ca">cputney@wiresong.ca</a>></span> <br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I really need to rewrite the tutorial to de-emphasize paths. You should use FSReference for everything. Once I get Eliot's suggestion implemented, the above will be:<br>
<br>
ref := FSReference D / 'Squeak' / '3.10'.<div class="im"><br></div></blockquote><div>Hi<br><br>I don't like global objects referencess in code. I cant mock global object in tests.<br>I like VW dsl for that. For FileSystem it's can be: <br>
<br>'d://squeak/3.10' asFileReference. <br><br>And delimiter "/" is just squeak delimiter (not OS filenames delimiter).<br><br>#asFileReference can be implemented like that:<br><br>String>>asFileReference<br>
FileSystem default parseFileReference: this.<br><br>I think this approach hides windows disks logic.<br><br>And for different FileSystem (not defafult) it's can be:<br><br>'squeak' / '3.10' asFileReferenceOn: aFileSystem<br>
<br><br><br></div></div>