Sign in Join

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

Mailing lists / fpc-devel / 2022-06

get and putin $modeswitch isooi

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Marco van de Voort

There was a question about $modeswitch ISOIO  on stack overflow, and specially why get() and put() are not part of it.

The documentation about this switch seems very sparse. As far as I can see it is mostly the lookahead and switching reset and read/write handlers to their ISO variants.

Does anybody know? Or is it simply because get/put support is newer?

Reply by email

Sven Barth
to Marco van de Voort
Marco van de Voort wrote 9 lines
There was a question about $modeswitch ISOIO  on stack overflow, and specially why get() and put() are not part of it. The documentation about this switch seems very sparse. As far as I can see it is mostly the lookahead and switching reset and read/write handlers to their ISO variants. Does anybody know? Or is it simply because get/put support is newer?

Put and Get are not part of modeswitch ISOIO, because they're not intrinsics and are instead provided by the ISO7185 unit which is only used for modeswitch ISO. As that unit also contains functionality that's not covered by the ISOIO modeswitch (some types, Round functions) it's not used for that modeswitch, but only together with the mode.

Regards,
Sven

Reply by email

Marco van de Voort
to Sven Barth
Sven Barth wrote 6 lines
Put and Get are not part of modeswitch ISOIO, because they're not intrinsics and are instead provided by the ISO7185 unit which is only used for modeswitch ISO. As that unit also contains functionality that's not covered by the ISOIO modeswitch (some types, Round functions) it's not used for that modeswitch, but only together with the mode.

I relayed your answer.

Reply by email