3204 – Document global properties

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3204 - Document global properties
Summary: Document global properties
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL: http://digitalmars.com/d/1.0/property...
Keywords: spec
Depends on:
Blocks: 677
Show dependency tree / graph
Reported: 2009年07月23日 12:30 UTC by Michiel Helvensteijn
Modified: 2015年06月09日 01:31 UTC (History)
2 users (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Michiel Helvensteijn 2009年07月23日 12:30:41 UTC
The spec page that describes properties implies that user defined properties (using get/set methods) can only be members of classes/structs.
But in fact the 'property syntax' also works for global functions. This should be reflected in the documentation.
Comment 1 Walter Bright 2009年08月31日 02:56:29 UTC
For D2, such "global properties" will no longer be allowed.
Comment 2 Michiel Helvensteijn 2009年08月31日 11:19:57 UTC
Is there any particular reason?
Comment 3 Walter Bright 2009年09月02日 01:20:11 UTC
No real reason for them to exist.
Comment 4 Walter Bright 2012年01月19日 11:17:35 UTC
Documented global properties.


AltStyle によって変換されたページ (->オリジナル) /