References to const

Jonathan M Davis jmdavisProg at gmail.com
Wed Nov 12 23:12:00 PST 2008


Andrei Alexandrescu wrote:
> 
> http://www.digitalmars.com/d/2.0/phobos/std_typecons.html#Rebindable
> 
> Andrei

Thanks for the info.  It would be nice if variable references to constant data were built into the language, but as long as Rebindable works, at least it's possible to have them.

However, it looks like I'm going to have to install dmd differently if I want to be able to use Rebindable.  I'm using gentoo's official ebuild and it's on version 2.008.  I had thought that that was the most recent version, but apparently not - and it looks like Rebindable has been added since then.  Oh well, I'll get a newer version on my system one way or another.  I'd prefer to be on the most recent version of dmd anyway, so this has pointed out to me that I'm quite a bit behind.

In any case, thanks for the info.  It'll be quite useful.  And from the look of the page that you linked to, you're one of the folks that implemented it, so thanks for that too.

- Jonathan M Davis



More information about the Digitalmars-d mailing list