...ing logging 4.0

はてなブログに移行しました。D言語の話とかいろいろ。

2009-04-05から1日間の記事一覧

関数内関数定義

import std.stdio; void f(){} void f(int){} // overload void main() { void g(){} void g(int){} // Error: declaration g is already defined } あれー? そうなの? main内でブロックスコープ作って関数定義してもダメだった.

いつまでもalias this

あ,なんだあ. 関数テンプレートにしなくてもalias thisした構造体を関数に与えられるのか. まあ,read/writeどちらもできるんだから当たり前か.

typedef or alias this - dmd 2.027

import std.stdio; void main() { { typedef int HWND; HWND hwnd = 0; int hoge; //hwnd = hoge; // error writeln(hwnd); writefln(typeid(typeof(hwnd))); writefln(HWND.sizeof); } writeln(); { struct HWND { alias handle this; private int handle; …

Multithreaded I/O

Dr. Dobb's | Good stuff for serious developers: Programming Tools, Code, C++, Java, HTML5, Cloud, Mobile, Testing んー? SSD買ったからもっとコンパイル早くしたくなって並列コンパイルに手を出したって言ってるのか? ウォルたんかわゆすな.