Re: Pascal program file parameter to Ada translation (Was: Re: Is GPC dead?)
Bastiaan Veelo <[email protected]> Wed, 4 Jan 2017 23:38:08 +0100
| Newsgroups | gmane.comp.compilers.gpc |
|---|---|
| Message-ID | <[email protected]> |
> On 4 Jan 2017, at 23:26, Kevan Hashemi <[email protected]> wrote: > > My main concern is whether I can implement the following dynamic allocation of memory space for graphs, images, and matrices. > > type > graph_type(num_points:integer)=array [0..num_points-1] of real; > graph_ptr=^graph_type; > var > xg:graph_ptr; > i:integer; > begin > for i:=100 to 200 do begin > new(xg,i); > dispose(xg,i); > end; I just came across an Ada example that may help you: https://en.wikibooks.org/wiki/Ada_Programming/Types/access#Deleting_objects_from_a_storage_pool I am pleased to see this discussion, because at my work we are somewhat in the same boat. We use the Prospero compiler, which finally appears to have vanished from the Internet. We have previously considered gpc, but its limited support for Extended Pascal has stopped us. We will have a serious look at Ada. Bastiaan. _______________________________________________ Gpc mailing list [email protected] https://www.g-n-u.de/mailman/listinfo/gpc
signature.asc
(application/pgp-signature, 842 B)
-----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJYbXlRAAoJEKv6vZcpz/qNp70QAJL/fObhdnhs8ixCpuPMDkzP imy3Yl09raifFyNTby7Fy7B+wuiKhD/gE/qX6SpgMFaxDWT0lpwgXSIApQvqnaaK ErHSXuqCbYo6NTlQtUxNyWt9uLsyPOyIfelBqBwznvLxlDxH7h5ebQMBFZHVOs8Q dGoeBep6qd/w2bFEzS0YGoAZHR+BmJ2R0ugXoltX31I28Gnpor0c9qMlizit14PD FjsoLbU19bxWb7+IZ9z3W1m0kIObFvddQLHUQ89VU3ogacxrHUpx1Sd173WW5Do+ muAwYac/U8zlez14f8pTSMY7EdWOpe3OoPKiQPhyNQ2BOiP0VZVyTj+tAiQszNuQ 0zXwW9XYuysDR8UaVytxyhikNFuVLiEeIpJihGcKgjHnrF5hd2suitiH2HKqSUv+ rAJjay+XzRyM2zbgTdH1MjOIy6XpAhybh9JX87e7DsD0lmcZSgvLofmueY4S2MhN 1yuxr6hmLeb7qCUiYFkxruY5sb2WIoxO/SiRtZ9zMsiYG09cp0FuBy8AsO0721WR thg0ECgs4YetbmAJsdqIrw5YmkjKJHzv8gNDwUCynO/HRj5ZNKP6tFSRylyO9K7G W+LojCfoCw37lhdpSg9Ij7C+aw4gRfN0cYCci7MQNeos5TSluIsttkqznT+co0+8 LZSC8T705dp+75W8JxBB =GfuH -----END PGP SIGNATURE-----