dmd 1.053 and 2.037 release

Extrawurst spam at extrawurst.org
Sat Dec 5 06:04:31 PST 2009


Walter Bright wrote:
> Probably the biggest thing is opDispatch!
> 
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.053.zip
> 
> 
> http://www.digitalmars.com/d/2.0/changelog.html
> http://ftp.digitalmars.com/dmd.2.037.zip
> 
> Many thanks to the numerous people who contributed to this update.

I love opDispatch ;)

[CODE]
struct Foo
{
	public void opDispatch(string s) (int _v)
	{
		writefln("Foo.'%s' (%s)",s,_v);
		return;
	}
}

void main()
{
	Foo f;

	f.fuckya(2);
	f.thisisaterriblelongmethodnamethatisnotevenimplementedexplicitlyinsideofmyclassFoo(2);
}

[/CODE]


I cannot wait to use it in my lua bindings, this is a great feature.


More information about the Digitalmars-d-announce mailing list