[Issue 9690] cannot access to @disable'd symbol from inner function of another @disable'd
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 17 05:38:06 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=9690
--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2013-11-17 05:38:04 PST ---
(In reply to comment #0)
> This code does not work.
>
> @disable {
> void dep() { }
> void main() {
> dep(); // OK
> void inner() {
> dep(); // cannot call dep
> }
> }
> }
>
> When you replace '@disable' with 'deprecated', it works. ( even with -de )
> I believe that both '@disable' and 'deprecated' should work in the same way.
In this case, @disable attribute should work like deprecated attribute.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list