Bug 2611 – A way to specify no ref parameter for value parameters

Status
RESOLVED
Resolution
INVALID
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
Linux
Creation time
2009-01-24T06:53:57Z
Last change time
2019-08-20T11:12:44Z
Assigned to
No Owner
Creator
Lars Ivar Igesund

Comments

Comment #0 by larsivar — 2009-01-24T06:53:57Z
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.