Re: Pascal program file parameter to Ada translation (Was: Re: Is GPC dead?)

Kevan Hashemi <[email protected]> Tue, 10 Jan 2017 10:09:48 -0500
Newsgroups gmane.comp.compilers.gpc
Organization Brandeis University
Message-ID <[email protected]>
Dear Leo,

Thank you for your continued assistance.

 > No. "huge" is a variable that is initialised to 128,000,000.

I see.

>    get (num);  -- read the size of the array from standard input
>    declare
>       xg_ptr : vector_ptr := new vector (0..num);

That's convincing.

>    procedure bahbah (min,max : Integer) is
>       xg_ptr : vector_ptr := new vector (min..max);
>    begin
>       Free_Vector (xg_ptr);  -- essential to avoid memory leaks
>    end bahbah;

Also convincing.

Despite my initial skepticism, FPC and Ada are both able to implement 
dynamic schema types, with some translation. So that's one long-term 
solution if we cannot prolong the life of GPC, and is a relief to me.

Yours, Kevan

-- 
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/

_______________________________________________
Gpc mailing list
[email protected]
https://www.g-n-u.de/mailman/listinfo/gpc