Project

General

Profile

Actions

Feature #18227

open

Static class initialization.

Added by ioquatix (Samuel Williams) over 2 years ago. Updated over 2 years ago.

Status:
Open
Target version:
-
[ruby-core:105433]

Description

As a follow on from https://bugs.ruby-lang.org/issues/18189 I would like to propose some kind of static class initialization. I'll investigate whether it's possible and create a PR.

Updated by Eregon (Benoit Daloze) over 2 years ago

I think for the public API functions should be used, as that providees a lot more flexibility in implementation.
Initializing as static means there is no possibility to ever add e.g. some context argument to it, so it is limiting.

Updated by ioquatix (Samuel Williams) over 2 years ago

Yes, this would only be for internal CRuby initialization, not for 3rd party code.

Actions #3

Updated by jeremyevans0 (Jeremy Evans) over 2 years ago

  • Tracker changed from Bug to Feature
  • Backport deleted (2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0