Index: docsrc/htomodule.dd
===================================================================
--- docsrc/htomodule.dd (revision 2200)
+++ docsrc/htomodule.dd (working copy)
@@ -246,17 +246,18 @@
Const Type Modifiers
- D has $(TT const) as a storage class, not a type modifier. Hence, just
- drop any $(TT const) used as a type modifier:
+ D has $(TT const) as a type modifier almost like C. Additionally (to C's
+ $(TT const)) $(TT const) in D is transitive (see $(LINK2 const3.html,
+ Const and Immutable)). Hence,
$(CCODE
-void foo(const int *p, char *const q);
+void foo(const int *p, char *const q, const float *const r);
)
becomes:
---------------------------
-void foo(int* p, char* q);
+void foo(const(int)* p, char* q, const float* r);
---------------------------
Extern Global C Variables