A D package containing my single-file modules
リビジョン | a42914c8cd1ecb56d72dd8dedcd57c0247d0550f (tree) |
---|---|
日時 | 2023-03-26 09:22:37 |
作者 | nemophila <stigma+osdn@disr...> |
コミッター | nemophila |
mlib: Specify compatibility with D >= 2.076.0
@@ -208,7 +208,7 @@ private: | ||
208 | 208 | moveForward(1); |
209 | 209 | } |
210 | 210 | |
211 | - value = app[]; | |
211 | + value = app.data(); | |
212 | 212 | moveForward(1); // move past ending ` |
213 | 213 | inRawValue = false; |
214 | 214 | } else { |
@@ -708,12 +708,7 @@ public class ConfigParser | ||
708 | 708 | break; |
709 | 709 | } |
710 | 710 | |
711 | - version (DigitalMars) { | |
712 | - m_currentSection = sectionHeader[]; | |
713 | - } else { | |
714 | - /* LDC / GNU */ | |
715 | - m_currentSection = sectionHeader.data; | |
716 | - } | |
711 | + m_currentSection = sectionHeader.data(); | |
717 | 712 | |
718 | 713 | if (m_currentSection in m_sections && m_strict) |
719 | 714 | throw new DuplicateSectionException(m_currentSection); |
@@ -2,4 +2,6 @@ | ||
2 | 2 | /// A collection of public domain modules for the |
3 | 3 | /// $(LINK2 https://dlang.org, D Programming Language). |
4 | 4 | /// |
5 | +/// All modules are compatible with D versions 2.076.0 and newer. | |
6 | +/// | |
5 | 7 | module mlib; |