[Issue 2611] New: A way to specify no ref parameter for value parameters
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jan 24 04:53:56 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2611
Summary: A way to specify no ref parameter for value parameters
Product: D
Version: 1.035
Platform: All
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: larsivar at igesund.net
When having methods with value ref/out/inout parameters, it is not possible to
say that you don't want to pass one in the same manner that you can pass null
for reference/pointer types.
The workaround
foo(int* bar)
does of course work, but it is very unfortunate in these SafeD times that
pointers must be used.
--
More information about the Digitalmars-d-bugs
mailing list