Skip to content

Commit 05f7c99

Browse files
ibuclawdlang-bot
authored andcommitted
deprecate.dd: Add cent/ucent to the deprecation table
1 parent 446811e commit 05f7c99

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

deprecate.dd

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ $(SPEC_S Deprecated Features,
1919
$(TROW $(DEPLINK delete),  , 2.079, 2.099, 2.109)
2020
$(TROW $(DEPLINK scope as a type constraint),  , 2.087,  ,  )
2121
$(TROW $(DEPLINK Imaginary and complex types), future, 2.097,  ,  )
22+
$(TROW $(DEPLINK 128-bit integer types), future, 2.100, 2.100,  )
2223
$(TROW $(DEPLINK Implicit catch statement), 2.072, 2.072, 2.081,   )
2324
$(TROW $(DEPLINK .sort and .reverse properties for arrays), ?, 2.072,  , 2.075)
2425
$(TROW $(DEPLINK C-style array pointers), ?, 2.072, 2.082,  )
@@ -374,6 +375,22 @@ $(H4 Rationale)
374375
)
375376

376377

378+
$(H3 $(DEPNAME 128-bit integer types))
379+
$(P D currently reserves the `cent` and `ucent` keywords for future use as
380+
128-bit integral types, but the use of will result in a compile-time error.
381+
---
382+
cent a = 18446744073709551616L;
383+
ucent b = 36893488147419103232UL;
384+
---
385+
)
386+
$(H4 Corrective Action)
387+
$(P Use the library types in $(COREFILEREF int128).
388+
)
389+
$(H4 Rationale)
390+
$(P These types are too specialized to be a part of the core language.
391+
)
392+
393+
377394
$(H3 $(DEPNAME Implicit catch statement))
378395
$(P One can catch everything by using $(D catch) without specifying a type.)
379396
---
@@ -989,3 +1006,4 @@ Macros:
9891006
DEPNAME=$(LNAME2 $0, $0)
9901007
TITLE=Deprecated Features
9911008
STDFILEREF = <a href="phobos/std_$1.html">$(D std.$1)</a>
1009+
COREFILEREF = <a href="phobos/core_$1.html">$(D core.$1)</a>

spec/lex.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ $(MULTICOLS 4,
977977
$(LINK2 expression.html#CastExpression, $(D cast))
978978
$(LINK2 statement.html#TryStatement, $(D catch))
979979
$(GDEPRECATED $(LINK2 type.html, $(D cdouble)))
980-
$(LINK2 type.html, $(D cent))
980+
$(GDEPRECATED $(LINK2 type.html, $(D cent)))
981981
$(GDEPRECATED $(LINK2 type.html, $(D cfloat)))
982982
$(LINK2 type.html, $(D char))
983983
$(LINK2 class.html, $(D class))
@@ -1066,7 +1066,7 @@ $(MULTICOLS 4,
10661066
$(LINK2 type.html#Typeof, $(D typeof))
10671067

10681068
$(LINK2 type.html, $(D ubyte))
1069-
$(LINK2 type.html, $(D ucent))
1069+
$(GDEPRECATED $(LINK2 type.html, $(D ucent)))
10701070
$(LINK2 type.html, $(D uint))
10711071
$(LINK2 type.html, $(D ulong))
10721072
$(LINK2 struct.html, $(D union))

spec/type.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ $(H2 $(LEGACY_LNAME2 Basic Data Types, basic-data-types, Basic Data Types))
107107
$(TROW $(D uint), $(D 0u), unsigned 32 bits)
108108
$(TROW $(D long), $(D 0L), signed 64 bits)
109109
$(TROW $(D ulong), $(D 0uL), unsigned 64 bits)
110-
$(TROW $(D cent), $(D 0), signed 128 bits (reserved for future use))
111-
$(TROW $(D ucent), $(D 0u), unsigned 128 bits (reserved for future use))
110+
$(TROW $(D cent), $(D 0), signed 128 bits)
111+
$(TROW $(D ucent), $(D 0u), unsigned 128 bits)
112112
$(TROW $(D float), $(D float.nan), 32 bit floating point)
113113
$(TROW $(D double), $(D double.nan), 64 bit floating point)
114114
$(TROW $(D real), $(D real.nan), largest floating point size available)

0 commit comments

Comments
 (0)