当前位置:网站首页>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).
边栏推荐
猜你喜欢

Information document management and configuration management

基于SSM实现水果商城批发平台

The first laravel workflow engine released the official version of v1.0

Advanced technology management - what management tools can managers use

【图像去噪】基于matlab高斯+均值+中值+双边滤波图像去噪【含Matlab源码 1872期】

IDEA 续命插件

Classical convolutional neural network model

UNIX Environment advanced programming --3-file io---3.10 file sharing

WebRTC服务端工程实践和优化探索

It was so simple to implement system call
随机推荐
Apple zoom! It's done so well
Programming principles
Cynthia項目缺陷管理系統
Install Kubernetes 1.24
逐向双碳:东数西算中的绿色需求与竞争焦点
index查list 注入的是mysql 执行的是oracle
Memory management -- Viewing memory space from the perspective of executing programs and processes
关于指令集位数,指令构架位数简述
Design of simple electronic clock based on single chip microcomputer
23. Lottery
go path包
修饰模式和代理模式的异同
苹果放大招!这件事干的太漂亮了……
36氪首发|打造国产精算预测引擎等产品,「深轻科技」连续完成三轮融资
2022年劳务员-通用基础(劳务员)上岗证题目及答案
第一章 第一节
基于单片机的简易电子钟设计
Interrupt handling mechanism
2022煤矿探放水特种作业证考试题库模拟考试平台操作
Node red series (25): integrate Gaode map and realize 3D map and track playback