Opened 8 years ago

Closed 6 years ago

Last modified 4 years ago

#657 closed task (fixed)

add WARNING pragma

Reported by: ijones Owned by: igloo
Priority: normal Milestone: 6.10.1
Component: Compiler Version: 6.4.1
Keywords: Cc: Bulat.Ziganshin@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Easy (less than 1 hour)
Test Case: N/A Blocked By:
Blocking: Related Tickets:

Description

It might be nice to have a WARNING pragma in place of or in addition
to the DEPRECATED pragma that just allows you to issue a generic
warning:

{-# WARNING f, C, T "These are deprecated" #-}
{-# WARNING g "This has terrible performance" #-}
{-# WARNING T "We had to expose this type for bad reasons, don't use it." #-}
{-# WARNING preConf "This is an unstable interface. May become deprecated." #-}
{-# WARNING fromJust "Calls the error function.  use maybe for safety" #-}
module Wibble {-# WARNING "Use Wibble_1 instead" #-}

This is more general than the DEPRECATED pragma.

Change History (10)

comment:1 Changed 8 years ago by simonpj

This could be easily done if we can agree about what we want.

Should "WARNING" be "WARN_USE" or "WARN_USE_OF" or "WARN_AT_USE" or something like that? Something more self explanatory.

(Or use hyphens? "WARN-USE" or "WARN-USE-OF" etc.)

Then DEPRECATED becomes "WARN-USE" with an automatic prefix "x is deprecated.". Right?

comment:2 Changed 7 years ago by igloo

  • Milestone set to 6.6.1
  • Test Case set to N/A

comment:3 Changed 7 years ago by simonmar

  • Milestone changed from 6.6.1 to 6.8

comment:4 Changed 7 years ago by guest

  • Cc Bulat.Ziganshin@… added

comment:5 Changed 6 years ago by simonmar

  • Milestone changed from 6.8 branch to 6.10 branch
  • Owner set to igloo

comment:6 Changed 6 years ago by igloo

  • Milestone changed from 6.10 branch to 6.10.1

comment:7 Changed 6 years ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed

WARNING pragma added

comment:8 Changed 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:9 Changed 6 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple

comment:10 Changed 4 years ago by simonmar

  • Difficulty changed from Easy (1 hr) to Easy (less than 1 hour)
Note: See TracTickets for help on using tickets.