On 30 December 2010 10:20, Nicolas Cellier
<
[hidden email]> wrote:
> Yes, and
> (FileDirectory default directoryExists: '.')
> is false too...
>
> Don't you hate this FileDirectory thing ?
i do.. but i have to use what is available , unfortunately...
> It's conveniency hardly compare to VW.Filename.
>
> For example, I'd like a #directoryExists without argument, It took me
> some times before I discovered it's #exists
>
yeah, but check the call chain for #assureExistence,
this is where it used, instead of #exists.
VMMaker using assureExistence for creating dirs.
> So you have to write:
> (FileDirectory default containingDirectory exists).
>
no.. i have to write:
| top |
top := FileDirectory default containingDirectory.
VMMaker
generate: StackInterpreter
to: (top / 'src') fullName
platformDir: ( top / 'platforms') fullName
excluding: #(BrokenPlugin IA32ABIPluginSimulator SlangTestPlugin TestOSAPlugin
FFIPlugin ReentrantARMFFIPlugin ReentrantFFIPlugin ReentrantPPCBEFFIPlugin).
instead of proposed by Eliot:
| def |
def := FileDirectory default .
VMMaker
generate: StackInterpreter
to: (def / '../src') fullName
platformDir: ( def / '../platforms') fullName
excluding: #(BrokenPlugin IA32ABIPluginSimulator SlangTestPlugin TestOSAPlugin
FFIPlugin ReentrantARMFFIPlugin ReentrantFFIPlugin ReentrantPPCBEFFIPlugin).
> But, beforing smiling, you'll have to try this:
> (FileDirectory on: '/') containingDirectory.
>
> Hehe, I don't like this class
>
> Nicolas
--
Best regards,
Igor Stasenko AKA sig.