Tuple and tie?

NCrashed via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 8 12:11:17 PDT 2014


Sorry, some glitch with email answer.

The main difference between my solution and TypeTuple is that you 
can pass anonymous struct between other functions to use it later:
```
void foo(T)(T holder)
{
	holder = sinCos(3.0f);
}

void main()
{
	float s,c;
	foo(tie(s,c));
	writeln(s, " ", c);
}
```


More information about the Digitalmars-d-learn mailing list