当前位置:网站首页>Minor problems in importing D
Minor problems in importing D
2022-06-26 07:37:00 【fqbqrr】
module test;
@safe:
import std;
void main()
{
//import std.uni : isWhite;
// Need to uncomment , To compile .
writeln(" learn D Interesting ".split!isWhite);
}
isWhite Ambiguity , Yes std.uni.isWhite/std.ascii.isWhite, Can't distinguish .
If , There are more details error Help would be better .
commonly , When the template does not match , It will explain Why? Mismatch , here , Unexplained .
First , The reason it doesn't match , because D In how to match " It is possible to compile " Limitations . The following should be accepted :
auto split(alias isTerminator, Range)(Range range)
if (isForwardRange!Range && is(typeof(unaryFun!isTerminator(range.front))))
Check it again Whether to compile , If no , be Mismatch .
Now? ,isWhite The symbol is a Overload set , Because it's not clear , It's wrong .
If , Copy definition to Local , Then it explains .
Last ,split/splitter The default with Space Separate .
I often use tricks :
import std;
void main()
{
import uni = std.uni;
writeln(" learn D Interesting ".split!uni.isWhite);
}
Underestimated Import . No longer inflate the domain .
边栏推荐
- [UVM practice] Chapter 3: UVM Fundamentals (3) field automation mechanism
- [recommend an entity class conversion tool mapstruct, which is powerful and easy to use]
- Redis(5)----浅谈压缩列表
- Median segmentation (find rules) - Niuke
- PyTorch-12 GAN、WGAN
- QTreeWidget And QTableWidget
- Error reported by using two-dimensional array [[]] in thymeleaf: could not parse as expression
- js模块化
- Redis (5) -- Talking about compressed list
- Is it safe for individuals to buy stocks with compass software? How to buy stocks
猜你喜欢

安装homebrew报错汇总

Shengshi Haotong enterprise wechat sector creates a digital ecological community

C#/. Net phase VI 01C Foundation_ 02:vs2019 basic operations, excluding code files, smart tips, data types, differences between float and double, and differences between string and string

Jemter 压力测试 -可视化工具-【使用篇】

Sanic based services use celery to complete dynamic modification timing tasks

5,10,15,20-tetraphenylporphyrin (TPP) and metal complexes fetpp/mntpp/cutpp/zntpp/nitpp/cotpp/pttpp/pdtpp/cdtpp supplied by Qiyue

Young man, do you know the original appearance of kotlin association process?

PXRD, IR, TGA of two-dimensional porphyrin COF (POR COF) /cof (2D pdpor COF) - supplied by Qiyue

Redis(5)----浅谈压缩列表

Oracle中计算除法——解决除数为零报错
随机推荐
How MySQL implements the RC transaction isolation level
[recommend an entity class conversion tool mapstruct, which is powerful and easy to use]
Cache usage
The first multi platform webcast of 2021ccf award ceremony pays tribute to the winners! CCF outstanding engineer
Okhttp3 source code explanation (IV) cache strategy, disadvantages of Android mixed development
Dark red crystal meso-5,10,15,20-tetra (p-aminophenyl) cobalt porphyrin (co TAPP); Meso-5,10,15,20-tetra (p-aminophenyl) cobalt porphyrin no complex (TAPP co no) supplied by Qiyue
Here is the command to display the disk space usage. Go ahead and pay attention to more wonderful things!
Yyds dry inventory Druid connection pool usage
[UVM practice] Chapter 2: a simple UVM verification platform (5) build test cases
Quickly find five channels for high-quality objects, quickly collect and avoid detours
B站增量数据湖探索与实践
Gavin teacher's insight on transformer live class - multi state transition of financial BOT and rasa interactive behavior analysis of Rasa project (52)
Jemter stress test - visualization tool support - [installation]
Esp32-c3 introductory tutorial WiFi part ⑥ - WIFI intelligent distribution network based on serial port
少年,你可知 Kotlin 协程最初的样子?
5,10,15,20-tetraphenylporphyrin (TPP) and metal complexes fetpp/mntpp/cutpp/zntpp/nitpp/cotpp/pttpp/pdtpp/cdtpp supplied by Qiyue
Tetra - (4-pyridyl) porphyrin tpyp and metal complexes zntpyp/fetpyp/mntpyp/cutpyp/nitpyp/cotpyp/ptpyp/pdtpyp/cdtpyp (supplied by Qiyue porphyrin)
[NLP] vector retrieval model landing: Bottleneck and solution!
Is it safe for individuals to buy stocks with compass software? How to buy stocks
You can command Siri without making a sound! The Chinese team of Cornell University developed the silent language recognition necklace. Chinese and English are OK