[fpc-pascal] variant part of a record

Vinzent Hoefler JeLlyFish.software at gmx.net
Wed Sep 20 13:35:21 CEST 2006


On Wednesday 20 September 2006 11:25, Jonas Maebe wrote:
> On 20 sep 2006, at 13:20, Пётр Косаревский wrote:
> > I'm vague: for the first time I hoped that when you access the
> > variant part, if the "case" variable was named, program checks it
> > run-time. Hoping that it was implemented this way, I asked about
> > control over the relative place in the memory of that named
> > variable. Oh, well, there are no run-time checks, so that's all...
>
> It's on my todo list to implement such checks (when enabled by a
> command line switch, of course). It's not that easy as it may look at
> first sight though.

Maybe you should take a look at the GNAT source code, Ada Compiler's do 
that sort of checks since 1983. ;)


Vinzent.




More information about the fpc-pascal mailing list