Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2016-07-05
04:51 • Deleted ticket [c4665869a7]: TclOO oo::objdefine variable plus 6 other chang... artifact: 7cee8a6415 user: aspect
2016-07-04
18:46 • New ticket [c4665869a7]. artifact: 75657fcb34 user: anonymous

TclOO oo::objdefine variable

Deletedc4665869a7ea77bbcf3ebac1e85dadab8d64c2b5Created 10 years agoUpdated 10 years ago
Descriptionplain2016-07-04 18:46:11
This code produces an error:

oo::class create A {

    constructor {} {
        oo::objdefine [self] variable var
        set var something
    }
    method a {} {
        puts $var
    }
    
}
[A new] a
aspectwiki2016-07-05 04:51:15

Duplicate of [ef422602e7]

Log in (anonymous is fine) to add a comment.