bill lam wrote:
In J library, \ is used as the path separator, eg.

script_z_ '~system\main\libpath.ijs'

I tried to change them to forward slash / and found that codes were broken in some places. IMO / is preferred because window programs also accept it as path separator. Are there any special reasons why \ is being used?

I suspect your programs are broken because of references to PATHSEP_j_, which will be backslash under windows.

However, I am not sure there is a good reason to continue with the windows backslash. Originally, we used it because pretty well everything was geared towards windows. Right now, it does not matter which delimiter is used, since jpath will convert it to the host separator. But it would simplify the scripts if the library only used a forward slash, and as you say, the underlying OS accepts both forward and backward slashes.




----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to