December 06, 2007 General » Re: Passing function parameters by name | |||
|---|---|---|---|
| |||
...named parameters. A better one is: typedef double Radions; typedef double Degrees; double sin(Degrees... | |||
December 06, 2007 General » Re: Passing function parameters by name | |||
|---|---|---|---|
| |||
...YMD date order, whatever...)
typedef int Year;
typedef int Month;
typedef int Day;
MyDate makeDate... | |||
December 04, 2007 General » Re: typedefs are useless | |||
|---|---|---|---|
| |||
...it: 1. Every time I define a typedef of the same base type, the operators... | |||
December 04, 2007 General » Re: typedefs are useless | |||
|---|---|---|---|
| |||
...s on the house.
// start code
template TypeDef(T)
{
T value;
typeof(this) opNeg()
{
typeof... | |||
December 04, 2007 General » Re: typedefs are useless | |||
|---|---|---|---|
| |||
...peeve I have about this). Using a typedef would allow operators to be used. I... | |||
December 03, 2007 General » Re: typedefs are useless | |||
|---|---|---|---|
| |||
...something I have wanted for some time:
typedef real MyReal
{
// stuff
}
it would be like... | |||
December 03, 2007 General » Re: typedefs are useless | |||
|---|---|---|---|
| |||
...integral types: typedef mytype float; mytype x = 1.0 // does not work. This typedef is... | |||
December 03, 2007 General » Re: typedefs are useless | |||
|---|---|---|---|
| |||
You can typedef things other than integral types. -- Kirk McDonald http://kirkmcdonald.blogspot.com Pyd... | |||
December 03, 2007 General » typedefs are useless | |||
|---|---|---|---|
| |||
...convertable from a long. I can do: typedef long mytype; However, I can't create... | |||
December 03, 2007 General » Re: Idea for getting rid of "static" on methods | |||
|---|---|---|---|
| |||
...foreach, foreach_reverse, mixin, module pragma, template, typedef, version, __traits -- E-mail address: matti.niemenmaa... | |||
Copyright © 1999-2021 by the D Language Foundation