Re: __gc arrays

"Alex Stephens" <thorin1-bOv4yBwr/[email protected]>
Newsgroups gmane.comp.gnu.dotgnu.developer
Message-ID <[email protected]>
> > > Since it requires the programmer to take explicit action to use, I have
> > > never really understood how it helps prevent sloppy programming.
> >
> > I agree it doesn't prevent sloppy programming but it would prevent
> > overflows leading to security problems since the program will just
> > terminate with an exception.
> 
> Only if the programmer uses the managed array capability.  If they write 
> ordinary C code, then the arrays are unmanaged by default and all bets are 
> off.

That's true but it's quite easy to replace unmanaged array declarations with managed ones using the __gc keyword. Btw, is there any chance of getting a C++ compiler for dotgnu in the relatively near future? I think the Mono team are working on one...

Regards,
Alex
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.