const(Object)ref is here!
Michel Fortin
michel.fortin at michelf.com
Wed Dec 8 04:50:03 PST 2010
On 2010-12-08 03:43:45 -0500, Walter Bright <newshound2 at digitalmars.com> said:
> Michel Fortin wrote:
>> After a recent discussion on this list about tail-const class
>> references, it became rather clear that someone interested would have
>> to implement the thing if we were to have it. So I did it. See
>> enhancement request 5325 for an explanation and a patch.
>> <http://d.puremagic.com/issues/show_bug.cgi?id=5325>
>
> I think it's great that you're trying this out. I failed at getting
> tail const to work. I don't think it can work, but I might be wrong.
Is there something I can do to convince you this patch works? Because
it does. There is still some rough edges for which I wasn't sure what
was the best solution -- head-modifiers not reflected in TypeInfo or
with is(T == const) -- but they're relatively minor and easy to fix
once we know what we want.
By the way, I pushed this into a separate branch in my dmd-objc git
repository (this branch does not include the Objective-C-related
changes). So you can get the source with the patch pre-applied this way:
git clone http://git.michelf.com/dmd-objc/
cd dmd-objc
git checkout objconst
--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/
More information about the Digitalmars-d
mailing list