tfpt review /shelveset:Loader9;REDMOND\tomat
Adds IsAbsolutePath to PlatformAdaptationLayer. On Windows the options
Of which only the last one is absolute. 1) is relative to the current
directory, 2) and 3) are relative to the current drive.
One Unix all paths starting with “/” are absolute.
A new implementation of file loader in Ruby.
File loading works as follows:
Argument path is
CLR long assembly name or qualified type name
Load .NET assembly or C# implemented Ruby library if the type
of the library initializer is specified. The library initializer needs
to derive from LibraryInitializer class and is called to load the
library classes and modules.
The path is matched against pattern (<type-name>,)?
(, =)+, property
names are arbitrary identifiers and property values arbitrary strings
not containing ‘=’ or ‘,’. Exact CLR property names are not matched.
.rb -> load
MRI: load dll
IR: not supported
MRI: try load path + .rb, path + .dll
IR: try load path, path + extension for all registered extensions in
runtime (.rb, .py, .js, …)
If multiple files match exist an ambiguous match exception is
For each dir in LoadPaths: Apply (2) on dir combined with path
Require checks $" variable for loaded files and appends the
name of the loaded file with extension to it on success.
Load doesn't try to append extensions.
Adds Kernel#load_assembly(assembly, type) for loading assemblies and C#
implemented Ruby libraries.