struct A { A& hoge(){ return *this; } } a; main() { a.hoge().hoge().hoge().hoge().hoge().hoge().hoge().hoge().hoge(); }