Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004970OCaml~DO NOT USE (was: OCaml general)public2010-02-04 09:252010-02-04 10:10
Assigned To 
PrioritynormalSeveritytweakReproducibilityhave not tried
PlatformOSOS Version
Product Version3.11.0 
Target VersionFixed in Version3.11.2+dev 
Summary0004970: instance variables masked by values
DescriptionThe following error seems surprising to me. The error message at least is perfectible. In fact, I even expected the x to be still visible as a field (thus making this example legal) but maybe this would bee too confusing.

class c = object
 val mutable x = ()
 method set = let x = () in x <- x

Error: Unbound instance variable x
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
garrigue (manager)
2010-02-04 10:10

Fixed the error message.
Indeed this was a bad example of reusing an error message for a different problem...

- Issue History
Date Modified Username Field Change
2010-02-04 09:25 turpin New Issue
2010-02-04 10:10 garrigue Note Added: 0005238
2010-02-04 10:10 garrigue Status new => closed
2010-02-04 10:10 garrigue Resolution open => fixed
2010-02-04 10:10 garrigue Fixed in Version => 3.11.2+dev
2017-02-23 16:36 doligez Category OCaml general => -OCaml general
2017-03-03 17:55 doligez Category -OCaml general => -(deprecated) general
2017-03-03 18:01 doligez Category -(deprecated) general => ~deprecated (was: OCaml general)
2017-03-06 17:04 doligez Category ~deprecated (was: OCaml general) => ~DO NOT USE (was: OCaml general)

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker