Search

December 06, 2007
General »
...named parameters. A better one is:

typedef double Radions;
typedef double Degrees;

double sin(Degrees...
December 06, 2007
General »
...YMD date order, whatever...)

    typedef int Year;
    typedef int Month;
    typedef int Day;

    MyDate makeDate...
December 04, 2007
General »
...it:

1. Every time I define a typedef of the same base type, the operators...
December 04, 2007
General »
...s on the house.

// start code
template TypeDef(T)
{
	T value;

	typeof(this) opNeg()
	{
		typeof...
December 04, 2007
General »
...peeve I have about this).  Using a typedef would allow operators to be used.

I...
December 03, 2007
General »
...something I have wanted for some time:

typedef real MyReal
{
   // stuff
}

it would be like...
December 03, 2007
General »
...integral types:

typedef mytype float;

mytype x = 1.0 // does not work.

This typedef is...
December 03, 2007
General »
You can typedef things other than integral types.

-- 
Kirk McDonald
http://kirkmcdonald.blogspot.com
Pyd...
December 03, 2007
General »
...convertable from a long.

I can do:

typedef long mytype;

However, I can't create...
December 03, 2007
General »
...foreach, foreach_reverse, mixin, module
	pragma, template, typedef, version, __traits


-- 
E-mail address: matti.niemenmaa...
223 224 225 226 227 228 229 230 231 232 233
Next ›   Last »