May 05, 2012 General » Re: Why typedef's shouldn't have been removed :( | |||
|---|---|---|---|
| |||
Er, the point is, there are functions ALREADY using size_t, and I need to... | |||
May 05, 2012 General » Re: Why typedef's shouldn't have been removed :( | |||
|---|---|---|---|
| |||
The effect is the same. You have a new type with a new init, that... | |||
May 05, 2012 General » Re: Why typedef's shouldn't have been removed :( | |||
|---|---|---|---|
| |||
The one with TypeDef? That's not how it's defined though. | |||
May 05, 2012 General » Re: Why typedef's shouldn't have been removed :( | |||
|---|---|---|---|
| |||
See my version. -- Bye, Gor Gyolchanyan. | |||
May 05, 2012 General » Re: Why typedef's shouldn't have been removed :( | |||
|---|---|---|---|
| |||
How do you fix it for size_t and uint, etc.? | |||
May 05, 2012 General » Re: Why typedef's shouldn't have been removed :( | |||
|---|---|---|---|
| |||
mixin template TypeDef(Type, string name, Type init)
{
mixin(`struct `~name~` { public alias _impl this... | |||
May 05, 2012 General » Re: Why typedef's shouldn't have been removed :( | |||
|---|---|---|---|
| |||
...That's still a lot better than typedef since you can control what operations are... | |||
May 05, 2012 General » Re: Why typedef's shouldn't have been removed :( | |||
|---|---|---|---|
| |||
...Currently the Typedef in Phobos is more broken than the built-in typedef. Here the... | |||
May 05, 2012 General » Re: Why typedef's shouldn't have been removed :( | |||
|---|---|---|---|
| |||
(Sorry that wasn't meant to be directed at you, I just happened to click... | |||
May 05, 2012 General » Re: Why typedef's shouldn't have been removed :( | |||
|---|---|---|---|
| |||
And for those who couldn't care less about Windows, I should also note that... | |||
Copyright © 1999-2021 by the D Language Foundation