[Top][All Lists]

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

Re: Emacs and Gnome Canvas

From: Eli Zaretskii
Subject: Re: Emacs and Gnome Canvas
Date: Fri, 16 Jul 2010 18:19:21 +0300

> From: Óscar Fuentes <address@hidden>
> Date: Fri, 16 Jul 2010 16:24:11 +0200
> > I meant link-time and run-time compatibility, not syntactic
> > compatibility.
> I use C code on my C++ projects all the time, without those issues. Why
> Emacs should be different?

Because Emacs uses some techniques that a rare C program does.  I
mentioned some of them in another thread.  Here's a recap:

  . The "relocatable allocator" which moves memory of allocated
    objects (such as the buffer text) when large chunks of memory are
    allocated or freed.  Also, allocation of memory off the pure
    space, during the build process.  These will probably need a
    custom new/delete implementations, and various C++ techniques such
    as smart pointers may need to be adjusted, or not used.

  . The dump and restart process: it's possible that various C++
    features such as static constructors will ``need some work'' to
    survive these atrocities.  That might need hacking the libraries
    you use, if you have the sources.

And if you are going to use Qt, you will also need to consider the
implication of the above on its objects.

reply via email to

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