Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-05

FSplit is deprecated

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bernd

unixutil

another deprecated function that has not written any hint towards its replacement right behind the 'deprecated' keyword (where it would belong). The RTL documentation also does not contain any hints.

Reply by email

Marco van de Voort
to Bernd

In our previous episode, Bernd said:

Show quoted text 5 lines
unixutil another deprecated function that has not written any hint towards its replacement right behind the 'deprecated' keyword (where it would belong). The RTL documentation also does not contain any hints.

Unixutil is a barrel of leftovers of 1.0.x times, and mostly obsolete.

Originally they were used in the implementation of the unix unit internally (then still called "linux") and mostly meant to implement the dos unit.

But in general since 2.0.x it is not recommended to use the dos unit anymore unless it really is for old TP code (and even then I would consider updating). This among others because of 255 char limitations of the dos interface.

So use functions from 2.0.x like sysutils.extract*

Reply by email

Bernd
to Marco van de Voort

2012/5/17 Marco van de Voort :

So use functions from 2.0.x like sysutils.extract*

Found it, thank you.

I was a little bit impatient yesterday, I should have searched a little longer on my own.

Due to the extraordinarily high quality of FPC and Lazarus I have begun to take absolute perfection for granted and when I then accidentally stumble over one little trivial imperfection (every 6 months or so) while I am in a hurry (always) it irritates me sometimes ;-)

Bernd

Reply by email

Marco van de Voort
to Bernd

In our previous episode, Bernd said:

Show quoted text 12 lines
> So use functions from 2.0.x like sysutils.extract* Found it, thank you. I was a little bit impatient yesterday, I should have searched a little longer on my own. Due to the extraordinarily high quality of FPC and Lazarus I have begun to take absolute perfection for granted and when I then accidentally stumble over one little trivial imperfection (every 6 months or so) while I am in a hurry (always) it irritates me sometimes ;-)

Free Pascal has history. Nowadays the dos <-> sysutils split is not as bad anymore, except for Turbo Vision code. But having two sets of everything is not ideal.

Unixutil is a bit doubtful unit. It should be cleaned out, but some functions can't move to their logical place (e.g. sysutils) because they are used in units much lower in the hierarchy. (in units that are used to implement units that are used to implement sysutils). So fully eliminating it is hard.

Anyway, I started making notes about any deprecated functionality that has been deprecated long, and will try to clean some of it out with 2.8.0. I already started with cleansing the unix unit a bit in 2.7.1 (which has routines deprecated since april 2007)

Reply by email