Hi,

On Fri, 5 Aug 2011, Karoly Balogh wrote:

> The problem with your example in particular that /System/Development as
> Amiga path is perfectly valid, as it means ../System/Development in POSIX
> path, not System:Development/ Having this in FExpand() affects all apps
> using the RTL on AROS, and can end with tons of random side effects.

OK, lets clarify this. /System/Development can be interpreted both as
Amiga path and Un*x path. As Un*x path it indeed can be translated to
Amiga path System:Development/, but if it's an Amiga path, it can be
translated to ../System/Development in Un*x. You simply cannot tell by
parsing simply the input of FExpand inside FExpand, that what you should
do there, as both are valid options.

This is why a separate function is need to be added, where the context
(the calling environment) requires the path conversion.

Charlie
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to