当前位置:网站首页>d编译时生成唯一标识
d编译时生成唯一标识
2022-06-13 10:20:00 【fqbqrr】
原文
这是我不久前提出的一个gensym
实现:
enum gensym = q{
"_gensym" ~ __traits(identifier, {
})["__lambda".length .. $]};
// 同行多次工作.
pragma(msg, mixin(gensym)); pragma(msg, mixin(gensym));
利用了编译器
为它遇见的每个λ
函数生成唯一
标识.
虽然不能在代码中
使用他们,但错误消息
中可见并且可__traits(identifier)
.
边栏推荐
- Cynthia项目缺陷管理系统
- Memory management -- Viewing memory space from the perspective of executing programs and processes
- Win7 cannot be remote desktop problem
- 【工具链系列】 Notepad++
- 上周热点回顾(6.6-6.12)
- 格林纳达代表团团长孙宇晨出席WTO MC12 强调发展数字经济
- ThingsBoard教程(二一):使用消息类型和数据处理节点对数据处理后保存
- 冗余码题型--后面加0的区别
- SQL server cannot find user or group when creating windows login account
- Matlab hub motor analysis fuzzy PID control vertical vibration analysis
猜你喜欢
Consolas-with-Yahei
Protocol UART of schematic diagram
【轴承故障分解】基于matlab ITD轴承故障信号分解【含Matlab源码 1871期】
Introduction to knowledge map
周末赠书:Power BI数据可视化实战
Electrolytic capacitor, tantalum capacitor, ordinary capacitor
Necessary for Architects: system capacity status checklist
低代码开发一个基础模块
Analysis and implementation of variable parameters in C language
实战模拟│企业微信机器人实时报错预警
随机推荐
了解RPC和REST
信息文档管理与配置管理
2022年劳务员-通用基础(劳务员)上岗证题目及答案
Système de gestion des défauts du projet Cynthia
Matplotlib 学习笔记
Vivo large scale kubernetes cluster automation operation and maintenance practice
C# Oracle 多表查询
How to optimize MySQL?
记一次水平越权漏洞的利用
Solution to qt5.12 unable to input Chinese (unable to switch Chinese input method) in deepin system
Cynthia項目缺陷管理系統
Vivo large scale kubernetes cluster automation operation and maintenance practice
A hot MySQL training topic, making you a master of SQL
Consolas-with-Yahei
36氪首发|打造国产精算预测引擎等产品,「深轻科技」连续完成三轮融资
Information document management and configuration management
2022煤矿探放水特种作业证考试题库模拟考试平台操作
Redundancy code question type -- the difference between adding 0 after
QTcpServer. QTcpSocket. Differences between qudpsockets
Execution order of subclass and parent constructor