Overview
| Artifact ID: | c584e21b7e8cc4c825f3dc6c782e178e68b0dc80 |
|---|---|
| Ticket: | 756883ffffffffffffffffffffffffffffffffff
ResetObjResult to call registered free function first time |
| User & Date: | ysutjandra on 2003-09-09 00:17:52 |
Changes
- icomment:
Logged In: YES user_id=799156 You're right... we use Tcl_Alloc to allocate space for string bytes. But still please consider using Tcl_DecrRefCount and Tcl_IncrRefCount instead of calling the free function directly. The reason is that my program flags an error if the free function is called when refCount is still greater than zero. This flag is useful because a specific object type that we implement will not be able to be recreated once it is deleted. So the flag is to notify users that the current object held by a tcl variable has been freed and they should recreate the object themselves. -- Yohan
- login: "ysutjandra"
- mimetype: "text/plain"
- username: "ysutjandra"