• gravitas_deficiency@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    2 days ago
    Well you see, it’s called “method acting” because it’s like calling a stateless method in Java (other languages call this a “function”) - the context is maintained for as long as the method is running, and then the scope and context is dropped once the method finishes its execution, and will be garbage collected at some point because it’s no longer useful. Pretty straightforward when you think about it that way.

    /s, very obviously

    • myster0n@feddit.nl
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      Ah, but it only gets garbage collected once the references to the class are lost. So, if you want to keep your abilities, stay classy!