Re: [eclipse-clp-users] canonical_path_bug/2 bug on Windows... again

From: Joachim Schimpf <jschimpf_at_...311...>
Date: Wed, 23 May 2012 13:35:06 +0200
Paulo Moura wrote:
> As you know, dealing with file-system is a portability nightmare, specially when considering both POSIX and Windows. The only practical solution will likely be to provide a library that forgoes the native support (from the point-of-view of interface) and provides a portability layer. I have something along these lines in Logtalk:

If I were to redo it from scratch, I'd probaly use a structured term
(instead of a string) as the OS-independent representation, similar to
what you suggested in file_name_parts/2 in,
and with the added advantage that it covers URIs as well

file_name_parts('', Parts)
Parts=[protocol(http), host(''), port(8080),
path('/'), base(index), extension('.html')]

-- Joachim
Received on Wed May 23 2012 - 11:35:07 CEST

This archive was generated by hypermail 2.2.0 : Mon Jul 09 2018 - 02:05:29 CEST