[Issue 6715] Using a custom pow function for ^^

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 4 16:00:54 PDT 2012


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


siegelords_abode at yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|Other                       |All
         OS/Version|Linux                       |All


--- Comment #1 from siegelords_abode at yahoo.com 2012-04-04 16:01:30 PDT ---
An even better idea occurred to me today, now that UFCS has been introduced.
Instead of my original proposal, why not do this:

a^^b

turns into

a.pow(b)

Due to the way properties are looked up this is safer than the original
proposal (bad things won't happen if you have variables named 'pow' for
example).

-- 
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