×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    537

    Concept for T Class

    In Crystal Version 6.0 Edition for C++, there is a sentence about Class Types:
    value classes, or types, whose name begins with T. They do not own any external object, either directly (by pointer) or indirectly (by handle).
    Pls explain for me for 'own any external object', give me a example is better. Thanks.
    Gening
    IMPOSSIBLE IS NOTHING

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    371

    RE: Concept for T Class

    Hi,

    Owning an external object means that it is class's responsibility to release the object (memory). So T class types don't have a destructor, because they do not need to free any objects. T types are normally created as automatics like built-in types and the opposite, C types are created to heap by new operator and they must be freed by delete.

    Regards,
    Marko

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×