X11 XSynchronize() definition in D

Ali Çehreli acehreli at yahoo.com
Tue Aug 6 08:46:22 PDT 2013


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:

   http://forum.dlang.org/post/ksc2ln$f1i$1@digitalmars.com

I have been to lazy to bring this topic up on the main newsgroup before 
opening an enhancement request.

Ali



More information about the Digitalmars-d-learn mailing list