One feature sadly missing from Pascal is the fact that PL/I allows you to use '*' as array extents in a called proc, and the (hidden) descriptors that are also passed to it allow you to call the same proc with
...
and a set of builtin functions (lbound and hbound) can be used to retrieve the low and high bounds of the arrays. ;) It's a bit more convoluted to do this with Pascal...
Hi,Not really. or maybe.
On Thursday, August 23, 2018 at 9:56:01 AM UTC-5, Robert Prins wrote:
One feature sadly missing from Pascal is the fact that PL/I allows you to use
'*' as array extents in a called proc, and the (hidden) descriptors that are
also passed to it allow you to call the same proc with
...
I don't quite understand what you mean here.
and a set of builtin functions (lbound and hbound) can be used to retrieve
the low and high bounds of the arrays. ;) It's a bit more convoluted to do
this with Pascal...
Are you talking about conformant arrays? Schemata? Open arrays?
Even Turbo Pascal (only later versions?) had LOW() and HIGH() built-ins.
Is that what you meant?
I don't think there's an easy way to do the same with Pascal, but I'm
ready to be corrected.
On 2018-08-31 16:47, rugxulo@gmail.hates.spam wrote:
Are you talking about conformant arrays? Schemata? Open arrays?Not really. or maybe.
Even Turbo Pascal (only later versions?) had LOW() and HIGH() built-ins. Is that what you meant?
Can Pascal (choose your flavour) handle passing these two different arrays of structures to a single procedure:
Well, PL/I can:
I don't think there's an easy way to do the same with Pascal, but I'm ready to
be corrected.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 219:19:19 |
Calls: | 6,621 |
Calls today: | 3 |
Files: | 12,171 |
Messages: | 5,317,854 |