Project

General

Profile

Actions

Feature #18227

open

Static class initialization.

Added by ioquatix (Samuel Williams) about 1 month ago. Updated 27 days ago.

Status:
Open
Priority:
Normal
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) 30 days 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) 29 days ago

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

Actions #3

Updated by jeremyevans0 (Jeremy Evans) 27 days ago

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

Also available in: Atom PDF