CnPack Forum


 
Subject: [建议]增加局部变量初始化的功能
rypan
新警察
Rank: 1



UID 621
Digest Posts 0
Credits 17
Posts 17
点点分 17
Reading Access 10
Registered 2004-12-23
Status Offline
Post at 2005-3-18 16:47  Profile | Blog | P.M. 
[建议]增加局部变量初始化的功能

比如
integer初始化成0
类初始化成nil
Top
rypan
新警察
Rank: 1



UID 621
Digest Posts 0
Credits 17
Posts 17
点点分 17
Reading Access 10
Registered 2004-12-23
Status Offline
Post at 2005-3-18 16:55  Profile | Blog | P.M. 
如果能在函数结尾进行释放,那就更棒了
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6776
Posts 3563
点点分 6776
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2005-3-18 19:21  Profile | Blog | P.M. 
这个需求比较别致。
如果过程函数中间Exit怎么办?
Top
rypan
新警察
Rank: 1



UID 621
Digest Posts 0
Credits 17
Posts 17
点点分 17
Reading Access 10
Registered 2004-12-23
Status Offline
Post at 2005-3-18 20:06  Profile | Blog | P.M. 
初始化应该自动添加,因为这个肯定错不了。

变量释放做成和现在的标准过程头类似,由用户自己决定是否使用。
Top
rypan
新警察
Rank: 1



UID 621
Digest Posts 0
Credits 17
Posts 17
点点分 17
Reading Access 10
Registered 2004-12-23
Status Offline
Post at 2005-3-18 20:08  Profile | Blog | P.M. 
其实这些都应该是borland做的,做成像java那样。哎。
Top
 




All times are GMT++8, the time now is 2024-6-19 14:29

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.006613 second(s), 7 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP