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.

Mailing lists / fpc-pascal / 2012-05
4 messages · 2 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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.
In our previous episode, Bernd said:
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*
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
In our previous episode, Bernd said:
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)