digitalmars.D.learn - determining type a pointer points to.
- div0 (15/15) Aug 22 2009 -----BEGIN PGP SIGNED MESSAGE-----
- Jarrett Billingsley (3/8) Aug 22 2009 template PtrElemType(T : T*) { alias T PtrElemType; }
- div0 (15/26) Aug 23 2009 -----BEGIN PGP SIGNED MESSAGE-----
-
Stewart Gordon
(5/10)
Aug 22 2009
- Jarrett Billingsley (2/12) Aug 22 2009 If p is int[], that gets you int instead of an error. I have no idea wh...
- Stewart Gordon (5/9) Aug 23 2009 For everyone's benefit, the bug report is:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is there a function to do this? I Didn't find anything in traits or std.traits ty - -- My enormous talent is exceeded only by my outrageous laziness. http://www.ssTk.co.uk -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFKkGoRT9LetA9XoXwRAvjVAKClZHcQvCURznJnfCXQgyB6yfI3IwCZAYsX 4Ux5B7756+GqtDzdvPbEmOY= =BiLK -----END PGP SIGNATURE-----
Aug 22 2009
On Sat, Aug 22, 2009 at 5:58 PM, div0<div0 users.sourceforge.net> wrote:-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is there a function to do this? I Didn't find anything in traits or std.traits tytemplate PtrElemType(T : T*) { alias T PtrElemType; } template PtrElemType(T) { static assert(false, "YOU FAIL"); }
Aug 22 2009
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jarrett Billingsley wrote:On Sat, Aug 22, 2009 at 5:58 PM, div0<div0 users.sourceforge.net> wrote:That's the one. ta. For some reason I was convinced it would be in phobos. doh. - -- My enormous talent is exceeded only by my outrageous laziness. http://www.ssTk.co.uk -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFKkRfQT9LetA9XoXwRAgy8AJ4hSpVzBejUoMjpU8sMpxIO9EvZGwCggVxP 8lSr6zpQDoq354uleXj6KHE= =xpXv -----END PGP SIGNATURE----------BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is there a function to do this? I Didn't find anything in traits or std.traits tytemplate PtrElemType(T : T*) { alias T PtrElemType; } template PtrElemType(T) { static assert(false, "YOU FAIL"); }
Aug 23 2009
div0 wrote:-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is there a function to do this? I Didn't find anything in traits or std.traits<snip> Not a function as such, but.... typeof(*p) Stewart.
Aug 22 2009
On Sat, Aug 22, 2009 at 6:55 PM, Stewart Gordon<smjg_1998 yahoo.com> wrote:div0 wrote:If p is int[], that gets you int instead of an error. I have no idea why.-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is there a function to do this? I Didn't find anything in traits or std.traits<snip> Not a function as such, but.... =A0 =A0typeof(*p)
Aug 22 2009
Jarrett Billingsley wrote:On Sat, Aug 22, 2009 at 6:55 PM, Stewart Gordon<smjg_1998 yahoo.com> wrote:<snip>For everyone's benefit, the bug report is: http://d.puremagic.com/issues/show_bug.cgi?id=1381 Stewart.typeof(*p)If p is int[], that gets you int instead of an error. I have no idea why.
Aug 23 2009