X11 XSynchronize() definition in D
Ali Çehreli
acehreli at yahoo.com
Tue Aug 6 09:17:28 PDT 2013
On 08/06/2013 08:46 AM, Ali Çehreli wrote:
> On 08/06/2013 03:22 AM, David wrote:>> struct Display
> >> {}
> >
> > D supports opaque structs/pointers
> >
> > struct Display;
> >
> > Now Display has to be used as pointer only or the compiler complains
> > e.g. about
> >
> > Display display;
>
> Yes and I am sure that is how Xlib.d has it.
>
> However, remembering a limitation that we have discovered a couple of
> weeks ago, I intentionally did not make it opaque, in case somebody
> would try toString() on it:
I am confused and being confusing... I think nobody should apply
toString() on an opaque type as it is supposed to dereference the actual
object.
> http://forum.dlang.org/post/ksc2ln$f1i$1@digitalmars.com
I will continue on that thread.
Ali
More information about the Digitalmars-d-learn
mailing list