Project

General

Profile

Actions

Feature #18227

open

Static class initialization.

Added by ioquatix (Samuel Williams) about 3 years ago. Updated 8 months ago.

Status:
Assigned
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) about 3 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) about 3 years ago

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

Actions #3

Updated by jeremyevans0 (Jeremy Evans) about 3 years ago

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

Updated by hsbt (Hiroshi SHIBATA) 8 months ago

  • Status changed from Open to Assigned
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0