Re: reusing "code entities" without oop



On Mar 28, 8:25 pm, "Stephen M. Gava" <elgua...@xxxxxxxxxxxxxxxxxxxxx>
wrote:
[...] I've found it asserted
in several places in documentation that most things that you might use
oop for in other languages are achievable in a non oop way in tcl.>

Not knowing the specific references in question, I can't tell whether
the authors referenced are thinking of the "create an OO extension in
pure tcl" approach, or if they are thinking of using namespaces, the
package mechanism, etc. to make it easy to bundle up code, then
dynamically load and use the code in question.


.



Relevant Pages

  • Re: Is garbage collection here yet?
    ... frequently writes in other high-level languages. ... references are implicit, other times they're explicit, but one thing is ... nested data structures very easily. ... Tcl seems to have avoided adding something resembling references to the ...
    (comp.lang.tcl)
  • Re: I want to know the pros and cons of TCL....
    ... implement it using references and/or copying under the hood. ... languages don't expose how they manage memory on the program's behalf. ... I guess the main difference is that in Tcl you can't specify what you ... the:: namespace), procedure definitions, namespaces and their ...
    (comp.lang.tcl)
  • Re: Bussines objects
    ... The reality is that OOP systems are just short hand for a lightweight ... those little references must be replaced by a more suitably ... > you look at the concept of Responsibility Driven Design; ... interface coding gave way to the declarative ease of use of HTML. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Concept-oriented programming
    ... account numbers or person SSNs. ... have to use primitive references for representing objects if we have ... Another point is that virtualization in CoP smoothly generalizes OOP, ...
    (comp.object)
  • Re: Is garbage collection here yet?
    ... I don't consider tcl to be a fully higher-level language. ... Tcl has so many other cool features and such a clean ... As others have answered, Tcl does do ref-counting GC of its values, which works fine for strings as they can't contain circular references and are stateless/immutable. ... Basically, it's hard to distinguish a reference from any other string, which makes it difficult to know when it is safe to delete something. ...
    (comp.lang.tcl)