当前位置:网站首页>D interface and domain problems
D interface and domain problems
2022-07-02 08:35:00 【fqbqrr】
struct S {
int x;
}
@safe
interface I {
int func(ref scope S s) @nogc;
}
@safe
class C : I {
int func(ref S s) {
return 2*s.x;
}
}
compiler
not checked Domain properties
?
Compiling , But the problem is , The interface function
There is one (refscopeS)
Parameters , The class implementation is (refS)
. use dip25 and dip1000
Should compile . The problem is Sometimes
It can lead to Segment error
. Compilers seem to treat them differently . Be careful ,C.func
There seems to be @nogc
, The adaptive
?
边栏推荐
- 程序猿学英语-指令式编程
- 2022 Heilongjiang latest construction eight members (materialman) simulated examination questions and answers
- Sentinel 简单使用
- C language custom type enumeration, Union (clever use of enumeration, calculation of union size)
- Chrome debugging
- Makefile Fundamentals
- 双向链表的实现(双向链表与单向链表的简单区别联系和实现)
- Summary of one question per day: stack and queue (continuously updated)
- How to uninstall SQL Server cleanly
- Matlab-其它
猜你喜欢
Sqli labs level 12
Solid principle: explanation and examples
Use Wireshark to grab TCP three handshakes
k8s入门:Helm 构建 MySQL
Development of digital collection trading website development of metauniverse digital collection
顺序表基本功能函数的实现
Carla-ue4editor import Roadrunner map file (nanny level tutorial)
sqli-labs(POST类型注入)
Web security -- core defense mechanism
IP协议与IP地址
随机推荐
Realization of basic function of sequence table
Use the numbers 5, 5, 5, 1 to perform four operations. Each number should be used only once, and the operation result value is required to be 24
Programming ape learning English - imperative programming
MySQL optimization
Analysis of the use of comparable, comparator and clonable interfaces
Zipkin is easy to use
群辉 NAS 配置 iSCSI 存储
Jz-061-serialized binary tree
Realize bidirectional linked list (with puppet node)
Causes of laptop jam
Don't know mock test yet? An article to familiarize you with mock
IP协议与IP地址
Learn to write article format
sqli-labs第1关
How to uninstall SQL Server cleanly
Carla-UE4Editor导入RoadRunner地图文件(保姆级教程)
OpenFeign 简单使用
Force buckle method summary: sliding window
HCIA - application layer
Routing foundation - dynamic routing