[Issue 7482] deprecation isn't checked inside forward referenced is(typeof())

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 12 11:25:35 PST 2012


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com


--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> 2012-02-12 11:25:33 PST ---
Deprecation is most definitely not about declarations not existing. It is about
being an error to reference them.

For example,

   deprecated void foo(int);
   void foo(long);

   ...
   foo(0);   // error, foo(int) is deprecated

rather than selecting foo(long), which it would if foo(int) "disappeared".

IOW, deprecation checking is done *after* symbol resolution, not before.

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