你如何逃避Delphi中的保留字? [英] How do you escape a reserved word in Delphi?

查看:133
本文介绍了你如何逃避Delphi中的保留字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要转义一个保留字来在Delphi中使用它作为标识符。我以为这是通过使用&&来完成的,但是似乎没有正常工作。任何其他建议?

解决方案

我发现 doc页面(搜索扩展语法),它应该是&符号。



弄清楚问题。和符号用于编译和错误洞察,但不是代码完成。很高兴知道。我不得不添加一个_后缀来使代码完成工作,然后再改回它。我应该检查QC是否有错误报告。


I need to Escape a reserved word to use it as an identifier in Delphi. I thought that was accomplished by using the ampersand "&", but that doesn't seem to be working right. Any other suggestions?

解决方案

I found the doc page (search for Extended Syntax) on it, and it should be ampersand.

Figured out the problem. The ampersand works for compiling and error insight, but not code completion. Good to know. I had to add an _ suffix to get code completion to work, then change it back afterwords. I should check QC for a bug report.

这篇关于你如何逃避Delphi中的保留字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆