Re: gdb-patches RFA: Fix pascal behavior for class fields

"Prof Abimbola Olowofoyeku" <[email protected]>
Newsgroups gmane.comp.compilers.gpc
Organization ChiefSoft
Message-ID <[email protected]>
On 10 Jan 2015 at 3:17, Waldek Hebisch wrote:

> Prof. Abimbola A. Olowofoyeku (The African Chief) wrote:
> > 
> > Supply "--extended-syntax" and GPC will accept "class" (and if you are
> > going to use "Result" then you will need to add "--implicit-result"). 
> > 
> > However, I do not believe that the "class" will be treated much 
> > differently from a bog-standard Borland Pascal "object" - for example,
> > not having (or not calling) a constructor will not crash the program
> > (as it should do, with Delphi-style classes).
> 
> Well, GPC intenally converts classes to _pointers_ to objcts.
> Not initializing class means using nil pointer, so expect
> crash.  
[...]

I stand corrected! 

Best regards, The Chief
--------
Prof. Abimbola A. Olowofoyeku (The African Chief) 
web:  http://www.greatchief.plus.com/


_______________________________________________
Gpc mailing list
[email protected]
https://www.g-n-u.de/mailman/listinfo/gpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.