www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11578] New: Add pragma error, warning

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11578

           Summary: Add pragma error, warning
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: alphaglosined gmail.com


--- Comment #0 from Richard Cattermole <alphaglosined gmail.com> 2013-11-21
23:07:45 PST ---
For language manipulation features like AST macros hooks into error and warning
at the compiler may add value in the future.
Proposal is to add pragma(error,) and pragma(warning,).
They should behave as pragma(msg,) except be hooked into the compilers warning
and error systems.

There is currently static assert(0, ) which does do close to what
pragma(error,) proposed does however it also does prepend "static assert" to
the output. Because of this the purpose to me is different.
However if pragma(warning,) was to be added and not pragma(error,) it would be
confusing for new users to not have it all in one place.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 21 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11578


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |yebblies gmail.com


--- Comment #1 from yebblies <yebblies gmail.com> 2013-11-22 19:21:58 EST ---
This has an existing pull request:

https://github.com/D-Programming-Language/dmd/pull/2755

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 22 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11578



--- Comment #2 from Richard Cattermole <alphaglosined gmail.com> 2013-11-23
22:27:40 PST ---
(In reply to comment #1)
 This has an existing pull request:
 
 https://github.com/D-Programming-Language/dmd/pull/2755
I know I created it. I only created this at request. --- Comment #3 from Richard Cattermole <alphaglosined gmail.com> 2013-11-23 22:27:40 PST --- (In reply to comment #1)
 This has an existing pull request:
 
 https://github.com/D-Programming-Language/dmd/pull/2755
I know I created it. I only created this at request. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 23 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11578



--- Comment #2 from Richard Cattermole <alphaglosined gmail.com> 2013-11-23
22:27:40 PST ---
(In reply to comment #1)
 This has an existing pull request:
 
 https://github.com/D-Programming-Language/dmd/pull/2755
I know I created it. I only created this at request. --- Comment #3 from Richard Cattermole <alphaglosined gmail.com> 2013-11-23 22:27:40 PST --- (In reply to comment #1)
 This has an existing pull request:
 
 https://github.com/D-Programming-Language/dmd/pull/2755
I know I created it. I only created this at request. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 23 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11578



--- Comment #4 from yebblies <yebblies gmail.com> 2013-11-24 17:36:50 EST ---
(In reply to comment #3)
 
 I know I created it. I only created this at request.
I know, I can read. The two are supposed to be cross-linked, so progress can be tracked, and old work can be found if the pull is closed. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 23 2013