Re: Is there any way to differentiate between a type and an alias?

2014-06-01 Thread Rene Zwanenburg via Digitalmars-d-learn
On Tuesday, 27 May 2014 at 18:05:24 UTC, Steven Schveighoffer wrote: I get it. I don't necessarily agree with that, but it's not my library :) I think it would be difficult to achieve without changing the actual function definition. Perhaps you could wrap the functions with your own, and use

Is there any way to differentiate between a type and an alias?

2014-05-25 Thread Rene Zwanenburg via Digitalmars-d-learn
Given alias GLenum = uint; void glSomeFunction(GLenum, uint); Now, is there some way to differentiate between GLenum and uint when using ParameterTypeTuple!glSomeFunction? I'm writing a function which shows the arguments a GL function was called with when an error occurs. The GLenum needs

Re: Is there any way to differentiate between a type and an alias?

2014-05-25 Thread Damian Day via Digitalmars-d-learn
On 25/05/2014 12:04, Rene Zwanenburg wrote: Given alias GLenum = uint; void glSomeFunction(GLenum, uint); Now, is there some way to differentiate between GLenum and uint when using ParameterTypeTuple!glSomeFunction? I'm writing a function which shows the arguments a GL function was called

Re: Is there any way to differentiate between a type and an alias?

2014-05-25 Thread Steven Schveighoffer via Digitalmars-d-learn
On Sun, 25 May 2014 04:04:09 -0700, Rene Zwanenburg renezwanenb...@gmail.com wrote: Given alias GLenum = uint; void glSomeFunction(GLenum, uint); Now, is there some way to differentiate between GLenum and uint when using ParameterTypeTuple!glSomeFunction? I'm writing a function which

Re: Is there any way to differentiate between a type and an alias?

2014-05-25 Thread Rene Zwanenburg via Digitalmars-d-learn
On Sunday, 25 May 2014 at 14:40:06 UTC, Steven Schveighoffer wrote: On Sun, 25 May 2014 04:04:09 -0700, Rene Zwanenburg renezwanenb...@gmail.com wrote: Given alias GLenum = uint; void glSomeFunction(GLenum, uint); Now, is there some way to differentiate between GLenum and uint when using