Overview
| Artifact ID: | ab1ac79cdae5bba810e80eb84bf72d034bc88661 |
|---|---|
| Ticket: | 2826430fffffffffffffffffffffffffffffffff
Channel name recycling is dangerous |
| User & Date: | ferrieux on 2009-07-24 21:47:35 |
Changes
- icomment:
Looking into the implementation, it seems a much simpler method than compact+gencount could work: just increment a global (per-interp) integer, and use it as source of uniqueness: int Tcl_GetUnique(Tcl_Interp *i); /* returns a different number every time. Wraps in no less than MAXUINT calls. */ The idea of making it a global stub entry is that any extension can use it for its own purposes, and keep the guarantee of not colliding. Is a TIP mandatory for that or shall I proceed ? - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"