On 4 Jan 2017, at 23:26, Kevan Hashemi hashemi@brandeis.edu 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_...
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.