Overview
| Artifact ID: | 01957463c8ad364ccf29e454c16ca9502b1bd226 |
|---|---|
| Ticket: | 1771726fffffffffffffffffffffffffffffffff
Forced Variable Types |
| User & Date: | msofer on 2007-08-22 22:46:16 |
Changes
- closedate changed to: "2007-08-22T15:46:16"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 Originator: NO There is no way of doing what you want, not in Tcl. The first example could indeed be done via traces, and it could (in principle) be done within the core. But at a huge cost in complexity, and ... having options to [set]? I do not think this can fly. The second example is fundamentally impossible: you are asking the variable myString to be able to only hold string values (that cannot be reinterpreted as something else? NOT Tcl at all!). You are also asking the value $myString to KNOW it is held in such a variable. I do not have enough info to understand where you see memory or runtime savings with such an approach, should it be feasible at all. Please provide detailed info - or even a patch, as suggest below.
- login: "msofer"
- mimetype: "text/plain"
- status changed to: "Pending"
- username: "msofer"