Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Sample Extension Uses Pre-Object Style

Closed / Fixed1076907fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-12-01 17:06:58
The sample extension uses the old string-style of
commands, and hence, Tcl_CreateCommand instead of
Tcl_CreateObjCommand, etc.

Starting from the sample extension and working with
more modern object-style commands, one is likely to get
a clean build with no errors, a clean load of the
shared library, and a nonobvious segmentation fault on
any attempt to use one of the added commands.

Suggest the sample extension be updated to use
object-style commands.
dkf Ticket [1076907fff]: 2 changes [History diff]2004-12-02 05:08:21
dgpplain2004-12-02 05:18:18
data_type - 360894

Logged In: YES 
user_id=80530

I like this idea very much, but
I'd call it a feature request rather
than a bug.
dgpplain2004-12-02 05:22:53
Logged In: YES 
user_id=80530

see also 927244
dkf Closed ticket [1076907fff]. [History diff]2004-12-02 07:38:05
dkfplain2004-12-02 07:38:06
Logged In: YES 
user_id=79902

Done; the code still isn't entirely elegant (it's confused
about the difference between options and subcommands) but
it's now object-based confusion. :^)
dkf Ticket [1076907fff]: 2 changes [History diff]2004-12-02 07:38:07
Log in (anonymous is fine) to add a comment.