#107 [tclpd] make $self namespace exist before calling constructo

closed
puredata (65)
5
2011-11-14
2011-11-12
No

In order to really easily do:
variable ${self}::myvar

tclpd should do this before calling an objects constructor:

if {![namespace exists $self]} {
namespace eval $self {}
}

Or maybe there is the equivalent to the setup() function, where it can just call "namespace eval $self {}"

Discussion

  • Anonymous - 2011-11-14

    possible implementation of feature request

     
  • Anonymous - 2011-11-14

    if you are able to check before I do, please check whereas the patch tclpd-featurereq-3436774.patch implements the requested feature correctly;

    in any case, that suggests in which part of the code to work in order to implement this.

     
  • Hans-Christoph Steiner

    Your patch works for me, I say commit it :)

     
  • Anonymous - 2011-11-14
    • status: open --> closed
     
  • Anonymous - 2011-11-14

    commit r15746

     


Anonymous

Cancel  Add attachments