On Sat, 20 Sep 2008 20:15:17 +0400, Saaa <empty at needmail.com> wrote: > > I'd like the following: > > texture.bind() //class texture, method bind. > { > .. > } //here texture.unbind would automatically be run. > > Is this possible? > > > > Yep! texture.bind() { scope(exit) texture.unbind() ... }