Skip to content

Commit af57ad4

Browse files
authored
Update cent/ucent deprecated docs (#3897)
* [deprecate] Update cent/ucent note * Fix Bugzilla 24710 - cent and ucent not marked as deprecated in basic types
1 parent a999c14 commit af57ad4

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

deprecate.dd

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,14 +380,15 @@ $(H4 Rationale)
380380

381381
$(H3 $(DEPNAME 128-bit integer types))
382382
$(P D currently reserves the `cent` and `ucent` keywords for future use as
383-
128-bit integral types, but the use of will result in a compile-time error.
383+
128-bit integral types. Using them will result in a compile-time error.
384+
)
384385
---
385386
cent a = 18446744073709551616L;
386387
ucent b = 36893488147419103232UL;
387388
---
388-
)
389+
389390
$(H4 Corrective Action)
390-
$(P Use the library types in $(COREFILEREF int128).
391+
$(P Use the library types in $(MREF std, int128) or $(COREFILEREF int128).
391392
)
392393
$(H4 Rationale)
393394
$(P These types are too specialized to be a part of the core language.

spec/type.dd

Lines changed: 5 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)
111-
$(TROW $(D ucent), $(D 0u), unsigned 128 bits)
110+
$(TROW $(GDEPRECATED $(D cent)), $(D 0), signed 128 bits)
111+
$(TROW $(GDEPRECATED $(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)
@@ -130,6 +130,9 @@ $(H2 $(LEGACY_LNAME2 Basic Data Types, basic-data-types, Basic Data Types))
130130
type supported by the x86 FPU.
131131
)
132132

133+
$(NOTE 128-bit integer types `cent` and `ucent`
134+
$(DDSUBLINK deprecate, 128-bit integer types, have been deprecated).)
135+
133136
$(P NOTE: Complex and imaginary types `ifloat`, `idouble`, `ireal`, `cfloat`, `cdouble`,
134137
and `creal` have been deprecated in favor of `std.complex.Complex`.)
135138

0 commit comments

Comments
 (0)