D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6976 - GetLastError called as property
Summary: GetLastError called as property
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other Windows
: P2 trivial
Assignee: David Nadlinger
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2011-11-19 13:46 UTC by Kyle Foley
Modified: 2011-12-04 11:53 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 Kyle Foley 2011-11-19 13:46:15 UTC
std.file:

FileException ctor calls GetLastError like a property as default argument.  This does not compile with -property switch because GetLastError is not marked as property.

Also should consider using scope operator.

The Posix version has the same problem when calling getErrno.