Search

October 21
General »
...analogy is probably C++.  Even if a main GUI lib were separate from phobos, having...
October 21
DIP Ideas »
...foo(byte) {}
    static void foo(int) {}
}

void main()
{
    byte arg;
    S.foo(arg); // resolves to...
October 21
DIP Ideas »
...T...)(T args) {
        writeln("static foo");
    }
}

void main(){
     A.foo(1,true); // calling non-static...
October 19
Learn »
...ModuleInfo.localClasses

```d
import std.stdio;

void main() {
    // ModuleInfo without parenthesis will call opDelegate to...
October 18
Learn »
...auto work = captureFuction(i);
		items ~= work;
	}

	foreach(worker; items)
	{
		worker();
	}
}
int main()
{
    aa();
    return 0;
}
```
October 18
Learn »
...at your code:

import std.stdio;

void main(){
    int op = 1;
    switch(op){
        default: writeln...
October 18
Learn »
...localFoo(int x) {
    return (){ return x;};
}

void main() {
    int x = 10;

    auto lambda = (int capturedX...
October 18
Issues »
...doesn't actually get triggered with what main is doing, so it doesn't really...
October 18
Issues »
...com

This code

```
import std.stdio;

void main()
{
    auto count = new Count;

    string[S] aa...
October 18
Learn »
...statements into a try finally:

```d
void main()
{
	S s = 0;
	try
	{
		if (true)
			return...
9 10 11 12 13 14 15 16 17 18 19 20
Next ›   Last »