Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 72027599e2de55609274e651f46e44addadbad8490c013bfeefeffce7fb99545
Ticket: 68050339b564d3c155cb9d9b324262ed7b3b65f3
classmethod fails if no argument supplied to class create
User & Date: apnadkarni on 2024-08-26 12:07:16
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    ```
    % oo::class create C
    ::C
    % oo::define C {method m {} {}}
    % oo::define C {classmethod cm {} {}}
    ::oo::Obj23:: oo ::delegate does not refer to an object
    ```
    
    Note `method` works, but not `classmethod`. On the other hand, if the `create` is passed a body (even empty), it all works.
    
    ```
    % oo::class create D {}
    ::D
    % oo::define D {method m {} {}}
    % oo::define D {classmethod cm {} {}}
    ```
    
    Very minor but spent a half hour not understanding why my code was suddenly failing after adding a classmethod :-)
    
  5. foundin changed to: "9.0b3"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "35. TclOO Package"
  15. title changed to:
    classmethod fails if no argument supplied to class create
    
  16. type changed to: "Bug"