texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] GCC 3.2 status update


From: Joris van der Hoeven
Subject: Re: [Texmacs-dev] GCC 3.2 status update
Date: Wed, 27 Nov 2002 16:45:47 +0100 (MET)

> So, destroy_tree_rep never performs a cast to a derived type of the
> dynamic type of an object, but only cast *to* the dynamic type.
> 
> However, I am unsure that the allocator code strictly respects those
> conversion rules. But disabling the allocator does not seem to fix our
> problems... However, I would be a good thing to fix that.
>
> The code might violate the conversion rules at some other places. In
> the pre-nogencc implementation of the event classes, there was such an
> illegal cast (which I removed because nogencc caused it to break). A
> good way to look for those problems would be to look for C-style casts
> (and replace them by modern casting techniques). I had a quick look at
> the code using a regex like ') *[(a-z_A-Z]' (not sure) but I found
> nothing incriminating. Maybe someone else should review that too.

The problem with "modern casting techniques" may be that they require
an additional time overhead. In any case, I still have the impression that
my casts are OK, since I cast to a pointer of the type *I know*
it should have.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]