Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-10-28
09:11 • Closed ticket [1055216fff]: Variable flag reform plus 7 other changes artifact: 26cd4dc9d9 user: msofer
2004-10-29
04:05 • Ticket [1055216fff]: 4 changes artifact: e93558b7c1 user: msofer
04:05 • Add attachment varflags2.diff to ticket [1055216fff] artifact: 816cdd353a user: msofer
2004-10-28
22:51 • Ticket [1055216fff] Variable flag reform status still Open with 5 other chan... artifact: e80c6af246 user: dgp
19:38 • Ticket [1055216fff]: 1 change artifact: 38e1a8fc4a user: dkf
19:38 • Ticket [1055216fff]: 4 changes artifact: f03cc3e32e user: dkf
2004-10-27
18:37 • Ticket [1055216fff]: 4 changes artifact: ec1b8ee3ed user: msofer
18:31 • Ticket [1055216fff]: 4 changes artifact: f294375176 user: msofer
18:31 • Add attachment varflags.diff to ticket [1055216fff] artifact: 12fe2110aa user: msofer
11:31 • New ticket [1055216fff] Variable flag reform. artifact: 2a5c3df57a user: msofer

Variable flag reform

Closed / Out of Date1055216fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 19 years ago
Descriptionplain2004-10-27 11:31:12
Changelog entry of the enclosed patch is:

 * generic/tclVar.c: simplification of the variable
logic; three
flag masks (VAR_SCALAR, VAR_UNDEFINED and
VAR_ARGUMENT) are not
used any longer.

*** POTENTIAL INCOMPATIBILITY ***
Extensions that include tclInt.h and directly access
the variable
flag values will definitely lose binary compatibility
due to
changes in some macro definitions. Source
compatibility may also
be affected depending on the details, and needs
reviewing. 
Extensions that might be impacted include procomp,
tbcload, itcl and
xotcl. 

I think that this simplification is important, as it
makes the handling of variables simpler and faster. The
changes required to any extension accessing VAR_* flags
or Tcl(SET|Clear|Is)Var* macros are small and simple.

But I am still somewhat wary of breaking so many
important extensions. OTOH, when if not in alpha?
Decisions ...

Requesting comments.
msoferplain2004-10-27 18:31:13
File Added - 106669: varflags.diff
msoferplain2004-10-27 18:37:31
Logged In: YES 
user_id=148712

Further note: Some unused flag values have been kept, some
unneeded macros have been defined to do nothing - hoping
that this simplifies the porting effort. 
The missing flag values are ignored. This may be important
for tbc files prepared prior to this patch to run, at least
until the tbcload developers take a look and/or make
whatever changes are necessary.
dkfplain2004-10-28 19:38:33
Logged In: YES 
user_id=79902

Itcl has already been broken for 8.5 anyway; you might as
well plunge onwards ;)
dkf Ticket [1055216fff]: 1 change [History diff]2004-10-28 19:38:58
dgpplain2004-10-28 22:51:57
Logged In: YES 
user_id=80530

confirmed this changes breaks
both binary and source compatibility
with both XOTcl and Itcl.

I'd be shy about committing this
until we at least identify the
patches to those extensions that
will restore them to working.
Unlikely to be suitable for
commit before 8.5a2 release, IMO.
msoferplain2004-10-29 04:05:33
File Added - 106866: varflags2.diff

Logged In: YES 
user_id=148712

I'll hold on until the day after 8.5a2 is branched ...
If we're already breaking compat, here's some more
modifications. No benchmarks yet.
msoferplain2007-10-28 09:11:45
Logged In: YES 
user_id=148712
Originator: YES

VAR_SCALAR and VAR_UNDEFINED are gone with varReform [Patch 1750051].
Log in (anonymous is fine) to add a comment.

Attachments: