Issue 1521 - Ambiguous documentation
Summary: Ambiguous documentation
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P4 trivial
Assignee: No Owner
URL: http://www.digitalmars.com/d/memory.h...
Keywords: spec
Depends on:
Blocks:
 
Reported: 2007-09-19 16:42 UTC by Klaus Friedel
Modified: 2015-06-09 05:14 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Klaus Friedel 2007-09-19 16:42:29 UTC
The documentation currently reads as follows:

Class instances are normally allocated on the garbage collected heap. However, if they:

    * are allocated as local symbols in a function
    * are allocated using new
    * use new with no arguments
    * have the scope storage class

It's umbiguous if all items of the list are required as condition, or only one of them.
The chapter should be rephrased to make clear that all conditions have to me true before the object is put on stack ("and" nor "or").