当前位置:网站首页>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 ?
边栏推荐
- Li Kou daily one question brushing summary: binary tree chapter (continuous update)
- Animation synchronization of CarSim real-time simulation
- Introduction to anti interception technology of wechat domain name
- Carsim-問題Failed to start Solver: PATH_ID_OBJ(X) was set to Y; no corresponding value of XXXXX?
- Constant pointer and pointer constant
- Hcia - Application Layer
- Jz-061-serialized binary tree
- Simple implementation scheme of transcoding and streaming (I)
- 使用wireshark抓取Tcp三次握手
- k8s入门:Helm 构建 MySQL
猜你喜欢

Don't know mock test yet? An article to familiarize you with mock

Opencv3 6.3 reduced pixel sampling with filters

Carsim-問題Failed to start Solver: PATH_ID_OBJ(X) was set to Y; no corresponding value of XXXXX?

Intelligent manufacturing solutions digital twin smart factory

Chinese garbled code under vscade

Openfeign is easy to use

File upload and download performance test based on the locust framework

Tcp/ip - transport layer

Jumping | Blue Bridge Cup

ARP and ARP Spoofing
随机推荐
Force deduction method summary: double pointer
使用wireshark抓取Tcp三次握手
HCIA—應用層
Sqli labs Level 2
My VIM profile
Global and Chinese market of wire loop, 2022-2028: Research Report on technology, participants, trends, market size and share
sqli-labs第12关
Gateway 简单使用
Carsim-問題Failed to start Solver: PATH_ID_OBJ(X) was set to Y; no corresponding value of XXXXX?
Use Matplotlib to draw a preliminary chart
install. IMG production method
16: 00 interview, came out at 16:08, the question is really too
sqli-labs(POST类型注入)
Introduction to parameters of CarSim pavement 3D shape file
OpenCV常用方法出处链接(持续更新)
Comparable,Comparator,Clonable 接口使用剖析
On November 24, we celebrate the "full moon"
Routing foundation - dynamic routing
Jumping | Blue Bridge Cup
2022 Heilongjiang's latest eight member (Safety Officer) simulated test question bank and answers