File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -660,10 +660,15 @@ $(GNAME IntegerSuffix):
660
660
$(B UL)
661
661
662
662
$(GNAME DecimalInteger):
663
- $(B 0)
663
+ $(GLINK ZeroDigits)
664
+ $(GLINK ZeroDigits) $(GLINK OctalDigit)
664
665
$(GLINK NonZeroDigit)
665
666
$(GLINK NonZeroDigit) $(GLINK DecimalDigitsUS)
666
667
668
+ $(GNAME ZeroDigits):
669
+ $(B 0)
670
+ $(B 0) $(GSELF ZeroDigits)
671
+
667
672
$(GNAME BinaryInteger):
668
673
$(GLINK BinPrefix) $(GLINK BinaryDigitsNoSingleUS)
669
674
@@ -787,7 +792,8 @@ $(GNAME HexLetter):
787
792
)
788
793
789
794
$(P C-style octal integer notation was deemed too easy to mix up with decimal notation;
790
- it is only fully supported in string literals.
795
+ it is only fully supported in string literals or when the decimal interpretation would be equivalent
796
+ (e.g. $(D 007) is accepted)
791
797
D still supports octal integer literals interpreted at compile time through the $(REF octal, std,conv)
792
798
template, as in $(D octal!167).)
793
799
$(P Hexadecimal integers are a sequence of hexadecimal digits preceded
You can’t perform that action at this time.
0 commit comments