octave-maintainers
[Top][All Lists]
Advanced

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

Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support


From: Jordi Gutiérrez Hermoso
Subject: Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support
Date: Mon, 10 Oct 2011 12:28:01 -0500

I was talking about jwe in #octave about this whole business, and
frankly, I think these OCTAVE_PTR_TYPE macros are a very ugly
solution. Casting pointers to integers and back is highly nonportable
and error-prone. If this is going to be part of Octave, why not patch
Octave instead? Would you be happy with an octave_ptr<T> class derived
from octave_value? It would give you T* pointers. jwe was thinking of
a more general class, octave_mem or something like that, which simply
holds a chunk of memory.

I think it's a better solution than trying to second-guess
architectures with CPP.

- Jordi G. H.


reply via email to

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