On 2010-08-13 20:45:13 -0400, dsimcha <dsim...@yahoo.com> said:

http://dsource.org/projects/phobos/changeset/1849

I've added some trivial convenience functions to Phobos that should have been
there a long time ago and should go a long way towards making Rebindable more
usable. The other thing we need is bug fixes in alias this/opDot, which we need
eventually anyhow.  Now, instead of doing something like this ugly, verbose,
specify-things-twice code:

auto foo = Rebindable!(LongTypeName)(new LongTypeName);  // Shoot me.

You can do:

auto foo = rebindable(new LongTypeName);  // Sanity restored.

Now the question for genericity's sake is: should Unqual!(const(Object)) give you the type Rebindable!(const(Object))?

Unfortunately, you probably can't get this one right without some help from the compiler: immutable(Rebindable!(const(Object)))?

And what will Unqual do with this: Unqual!(immutable(Rebindable!(const(Object)))?

--
Michel Fortin
michel.for...@michelf.com
http://michelf.com/

Reply via email to