Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dd6a8ff2e7430f0a8609b666936a570ff7316576
Ticket: 3474460fffffffffffffffffffffffffffffffff
targetObject should be optional for oo::copy
User & Date: basilik99 on 2012-01-27 06:40:05
Changes

  1. icomment:
    Hi,
    
    Thanks sebres for this link. I looked at it and it could be good for a new project. However, the application which is deserializing my objects is already written and expects a particular format. In particular, it expects to find an ID for each class that composes an object O.
    
    Suppose the class hierarchy A -> B -> C -> D -> E, E having no subclass. Then in the serialized binary code, there will be some bits indicating the object is of type A, then of type B, and so on, further refining until the leaf class is reached. Moreover, at some stages, additional information is added (i.e. B outputs the attributes it contains before continuing on the chain). That might not be the standard way to do deserialization, but I have to stick with that format.
    
    Still, I am still wondering if TclOO allows such methods to be "inserted" between each class of a hierarchy...
    
    DKF, will the targetObject bug be corrected? And did you think about the copy hook?
    
    Thanks,
    Étienne
    
    
  2. login: "basilik99"
  3. mimetype: "text/plain"
  4. username: "basilik99"