Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004539OCamlOCaml generalpublic2008-04-24 00:322014-09-24 20:00
Reporterecc 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version3.10.1 
Target Version4.02.2+devFixed in Version 
Summary0004539: please change exception string raised when comparing functional values
DescriptionIf f and g are functions, then
 f = g, f < g, f >= g, etc. all produce the exception
     Invalid_argument "equal: functional value"
Changing this to "compare: functional value" would be less confusing.
Tagsjunior_job, patch
Attached Filespatch file icon 0001-4539-Fix-exception-string-when-comparing-functional-.patch [^] (1,474 bytes) 2013-11-08 18:12 [Show Content]

- Relationships

-  Notes
(0004569)
doligez (administrator)
2008-08-04 17:08

I'm not sure we want to make this change, since it might break some badly-written programs.
(0010310)
doligez (administrator)
2013-09-04 17:58

I've changed my mind and I think we should do it.
(0010608)
nbraud (reporter)
2013-11-08 18:13

Here is a tentative patch.

Seemed trivial enough to be easily done, and I tested that it works with the toplevel, the bytecode compiler and the native code compiler (at least on amd64).

- Issue History
Date Modified Username Field Change
2008-04-24 00:32 ecc New Issue
2008-08-04 17:08 doligez Note Added: 0004569
2008-08-04 17:08 doligez Status new => acknowledged
2012-07-11 15:52 doligez Target Version => 4.01.0+dev
2012-07-31 13:36 doligez Target Version 4.01.0+dev => 4.00.1+dev
2012-09-15 12:31 doligez Target Version 4.00.1+dev => 4.01.0+dev
2013-07-30 11:27 doligez Target Version 4.01.0+dev => 4.02.0+dev
2013-09-04 17:58 doligez Note Added: 0010310
2013-09-04 17:59 doligez Tag Attached: junior_job
2013-11-08 18:12 nbraud File Added: 0001-4539-Fix-exception-string-when-comparing-functional-.patch
2013-11-08 18:13 nbraud Note Added: 0010608
2014-01-16 22:23 yallop Tag Attached: patch
2014-08-18 20:13 doligez Target Version 4.02.0+dev => 4.02.1+dev
2014-09-04 00:25 doligez Target Version 4.02.1+dev => undecided
2014-09-24 20:00 doligez Target Version undecided => 4.02.2+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker