[fpc-pascal] TPath enhancements (Issue #40513): can somebody test with Delphi 12?y

Michael Van Canneyt michael at freepascal.org
Sun Nov 19 16:21:09 CET 2023



On Sun, 19 Nov 2023, Bart via fpc-pascal wrote:

> On Sun, Nov 19, 2023 at 2:31 PM Michael Van Canneyt via fpc-pascal
> <fpc-pascal at lists.freepascal.org> wrote:
>
>
>> > This raises the question what the result of
>> > TPath.Combine(['a','\b',c'','\d','e']) would be (I would then expect
>> > either \b\c or \d\e)?
>>
>> \d\e
>>
>> >
>> > If ValidateParams is True, will it raise an error on invalid path
>> > characters in an argument that will not be used for the final result
>> > e.g. ['a','<|>','c:\foo']?
>>
>> Yes. All arguments are checked.
>
> Thanks again for testing.
> Where is EInOutArgumentException defined?
> Probably it's defined as class(EInOutError)?

No. EArgumentException.

> If so, what is the value of the ErrorCode property in this case?

There is no errorcode, since there is no IO. It's purely a string operation.

Michael.


More information about the fpc-pascal mailing list