[Mono-dev] Blank characters in windows file names

Paolo Molaro lupus at ximian.com
Tue Feb 20 05:39:45 EST 2007


On 02/19/07 Miguel de Icaza wrote:
>     Also, if you want to add code for Windows-only paths, do not call
> IsRunningOnWindows 3 times, as each one requires an unmanaged
> transition, instead call it once and store it in a local bool.

IsRunningOnWindows is used in many places in the code and it is much
better readability-wise to use it instead of caching (if anything, the
caching should be done in the Environment code). Anyway, I changed the
JIT to inline a constant instead of the call to IsRunningOnWindows, so
IsRunningOnWindows can be used everywhere as many times as needed and
all the dependent code is optimized away.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list