[fpc-devel] Some new

Michael Van Canneyt michael at freepascal.org
Tue Mar 5 10:38:12 CET 2019



On Tue, 5 Mar 2019, J. Gareth Moreton wrote:

> Heh, okay, I stand corrected.  Thanks Michael.  Seems I need to read up
> on all the functions in the standard units.  Sorry for wasting everyone's
> time.

No waste of time.

>
> I do wonder though if it's worth adding " in " to SysUtils, since it's a
> very convenient and intuitive notation... not just for Chars but for all
> basic types, actually.

If you want that, use a separate unit 'InUtils' or so.

Rationale: SysUtils is broadly used.

I don't want that my current "x in y" suddenly gets changed from a compiler 
internal to something else because you decided to add some in operator to
sysutils.

It should be a conscious choice by the developer to use such constructs.

Michael.


More information about the fpc-devel mailing list