On Sunday, 5 January 2014 at 17:17:27 UTC, Artur Skawina wrote:
While 'void' is not a first class type in D, there /is/ a special case for returning 'void' from functions - so all of the above can
simply be written as:

   struct gl {
static auto ref opDispatch(string name, Args...)(Args args) {
         scope (exit) checkGLError();
         return mixin("gl"~name~"(args)");
      }
   }

artur

That's awesome! Thanks for enlightening me!

Reply via email to