当前位置:网站首页>Method keywords deprecated, externalprocname, final, forcegenerate
Method keywords deprecated, externalprocname, final, forcegenerate
2022-07-06 19:48:00 【User 7741497】
Chapter 61 Method keyword - Deprecated
Specify that this method is not recommended . This keyword is ignored by the class compiler , It just provides a human readable indicator , Indicates that the method has been deprecated .
usage
To specify that this method is not recommended , Please use the following syntax :
Method name(formal_spec) As returnclass [ Deprecated ]
{ //implementation } otherwise , Omit this keyword or put the word Not Put in front of the keyword .
Chapter 62 Method keyword - ExternalProcName
When this method is used as a stored procedure in an external database , Specify its name . Applicable only if the method is projected as a stored procedure .
To override the default name of a method when it is used as a stored procedure in an external database , Please use the following syntax :
ClassMethod name(formal_spec) As returnclass [ SqlProc, ExternalProcName = MyProcedure ]
{ //implementation } among MyProcedure Is a string without quotation marks .
Detailed explanation
When this method is used as a stored procedure in an external database , This keyword allows you to define the name of this method .
Default
If you omit this keyword , The method name will be used as the stored procedure name
Chapter 63 Method keyword - Final
Specify whether this method is the final method ( Cannot override in subclasses ).
usage
To specify that the method is final , Please use the following syntax :
Method name(formal_spec) As returnclass [ Final ]
{ //implementation }otherwise , Omit this keyword or put the word Not Put in front of the keyword .
Detailed explanation
Marked as final Class members of cannot be overridden in subclasses .
Default
If you omit this keyword , Then this method is not final .
Chapter 64 Method keyword - ForceGenerate
Specify whether the method should be compiled in each subclass . Applicable only if the method is a method generator .
usage
To specify that methods should be compiled in each subclass ( Method generator ), Please use the following syntax :
Method name(formal_spec) As returnclass [ CodeMode = ObjectGenerator, ForceGenerate ]
{ //implementation }otherwise , Omit this keyword or put the word Not Put in front of the keyword .
Detailed explanation
In the case of a method generator method , Specify that the method should be compiled in each subclass . When you need to ensure that each subclass has its own method version , This keyword is very useful . If the generated code looks the same as the code generated by the superclass , IRIS Methods in subclasses will not be recompiled . This logic does not consider whether the included files of the two classes are the same . If the method uses macros defined in the include file , And if subclasses use different include files , IRIS The method will not be recompiled in subclasses . under these circumstances , Please specify ForceGenerate.
Default
If you omit this keyword , The method will not be compiled in each subclass .
边栏推荐
- MySQL information schema learning (I) -- general table
- Transformer model (pytorch code explanation)
- Alibaba data source Druid visual monitoring configuration
- Introduction to enterprise lean management system
- Li Kou 101: symmetric binary tree
- Learning and Exploration - Seamless rotation map
- 【翻译】供应链安全项目in-toto移至CNCF孵化器
- 10 schemes to ensure interface data security
- Selenium advanced operations
- js实现力扣71题简化路径
猜你喜欢

信息系统项目管理师---第八章 项目质量管理

Example of applying fonts to flutter

潇洒郎: AttributeError: partially initialized module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipe

Introduction to enterprise lean management system

Reflection and illegalaccessexception exception during application

A5000 vGPU显示模式切换

Analysis of rainwater connection
深入分析,Android面试真题解析火爆全网

Hudi vs Delta vs Iceberg

Li Kou 101: symmetric binary tree
随机推荐
js实现力扣71题简化路径
【翻译】Linkerd在欧洲和北美的采用率超过了Istio,2021年增长118%。
10 schemes to ensure interface data security
LeetCode_ Gray code_ Medium_ 89. Gray code
Test Li hi
Classic 100 questions of algorithm interview, the latest career planning of Android programmers
凤凰架构2——访问远程服务
In depth analysis, Android interview real problem analysis is popular all over the network
In simple terms, interview surprise Edition
Druid database connection pool details
Example of shutter text component
接雨水问题解析
Pay attention to the partners on the recruitment website of fishing! The monitoring system may have set you as "high risk of leaving"
转让malloc()该功能后,发生了什么事内核?附malloc()和free()实现源
Lick the dog until the last one has nothing (simple DP)
学习打卡web
广州首个数据安全峰会将在白云区开幕
Learn to explore - use pseudo elements to clear the high collapse caused by floating elements
[translation] micro survey of cloud native observation ability. Prometheus leads the trend, but there are still obstacles to understanding the health of the system
Chic Lang: attributeerror: partially initialized module 'CV2' has no attribute 'GAPI_ wip_ gst_ GStreamerPipe