[Issue 8490] Global property calls do not work with pointers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 29 16:36:07 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8490


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


--- Comment #5 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-08-29 16:36:05 PDT ---
(In reply to comment #4)
> (In reply to comment #3)
> > Why dangerous? Normal method invocations work, so why shouldn't UFCS work?
> 
> Having methods (what UFCS emulates) which implicitly create a copy of the
> object and operate on that copy would be confusing. Both for the interface user
> and the creator. The latter will be forgetting about the 'ref' while the former
> will not expect 'o.whatever' to copy 'o' and call 'whatever' using that private
> copy. Both issues would be bug sources.
> 
> Not introducing unsound features is easier than later removing them...

Oh I see what's going on now, the pointer can't be passed because it would have
to be dereferenced. I think this is invalid then, thanks.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list