Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006522OCamlOCaml generalpublic2014-08-28 17:452014-09-14 21:43
Reporterdoligez 
Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version4.02.0+dev 
Target Version4.02.1+devFixed in Version4.02.1+dev 
Summary0006522: double warning on (&) and (or)
DescriptionNow that (&) and (or) are marked obsolete in the stdlib, we get two warnings about each.
We should remove the ad-hoc code that warns about them, and let the generic one do its job.
Steps To Reproduce$ ocaml
        OCaml version 4.02.0+dev16-2014-08-21

# true & true;;
Warning 3: deprecated: Pervasives.&
Warning 3: deprecated: operator (&); you should use (&&) instead
- : bool = true
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0012055)
frisch (developer)
2014-08-28 17:48

Note that the @@deprecated attribute can take a string argument which will be displayed along with the warning message. This allows us to give the same information as the previous ad hoc code.
(0012123)
doligez (administrator)
2014-09-14 21:43

fixed in 4.02 branch (commit 15225)

also added hints to most deprecated stdlib functions

- Issue History
Date Modified Username Field Change
2014-08-28 17:45 doligez New Issue
2014-08-28 17:48 frisch Note Added: 0012055
2014-09-04 00:25 doligez Target Version 4.02.1+dev => undecided
2014-09-04 00:43 doligez Status new => confirmed
2014-09-14 21:39 doligez Target Version undecided => 4.02.1+dev
2014-09-14 21:43 doligez Note Added: 0012123
2014-09-14 21:43 doligez Fixed in Version => 4.02.1+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker