To ease writing codes intended for both J6 and J7, I changed jpathsep in J6
to mean the same thing as in J7, ie. alwasys converting to '/', 
The verb hostpathsep is added to both J6 and J7, so that the following verbs
should be available and identical in both version.

NB.*hostpathsep v  converts path name to use host path separator
NB.*jpathsep v     converts path name to use / separator
NB.*winpathsep v   converts path name to use \ separator

consequently, PATHSEP_j_ is hostpathsep '/'

Please bug if the change of jpathsep in J6 will cause any regression.

Чтв, 01 Дек 2011, Ric Tikkanz писал(а):
> Depending on your usage I'm not sure that this will ensure future
> compatibility? The default path separator for J7 is '/' for all OSs so
> a OS test as below may give you incorrect results depending on
> version.
> 
> The following verbs are available in both J6 and J7 and (depending on
> your use case) may provide better future compatibility.
> 
> winpathsep - force path to default Windows path separator
> jpathsep - force path to default path separator for OS/Jversion combo
> 
> On Thu, Dec 1, 2011 at 2:37 AM, Tracy Harms <kalei...@gmail.com> wrote:
> > Thanks for coming up with that, Björn. Now I'll use the definition
> > ('/\'{~6=9!:12'')
> > in place of the name for future compatibility.
> >
> > 2011/11/29 Björn Helgason <gos...@gmail.com>
> >
> >> fif
> >>
> >> c:/j701/addons/format/publish/publish.ijs<
> >> http://127.0.0.1:65001/jijs?mid=open&path=%63%3A%2F%6A%37%30%31%2F%61%64%64%6F%6E%73%2F%66%6F%72%6D%61%74%2F%70%75%62%6C%69%73%68%2F%70%75%62%6C%69%73%68%2E%69%6A%73
> >> >
> >>  (1)
> >> PATHSEP=: '/\'{~6=9!:12''
> >>
> >> c:/j701/addons/ide/jhs/jfif.ijs<
> >> http://127.0.0.1:65001/jijs?mid=open&path=%63%3A%2F%6A%37%30%31%2F%61%64%64%6F%6E%73%2F%69%64%65%2F%6A%68%73%2F%6A%66%69%66%2E%69%6A%73
> >> >
> >>  (2)
> >> PATHSEP=: '/'
> >> FIFPATHSEP=: PATHSEP_j_
> >>
> >>
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to