Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation of GIMME long promised but not yet scheduled #22532

Open
jkeenan opened this issue Aug 22, 2024 · 0 comments
Open

Deprecation of GIMME long promised but not yet scheduled #22532

jkeenan opened this issue Aug 22, 2024 · 0 comments

Comments

@jkeenan
Copy link
Contributor

jkeenan commented Aug 22, 2024

(Moved from #22527 (comment).)

I read the following in the documentation (5.40.0):

perldoc perl5380delta

    *   The underlying "Perl_dowantarray" function implementing the
        long-deprecated "GIMME" macro has been marked as deprecated, so that
        use of the macro emits a compile-time warning. "GIMME" has been
        documented as deprecated in favour of "GIMME_V" since Perl v5.6.0,
        but had not previously issued a warning.

perldoc perlapi

    "GIMME"
        "DEPRECATED!" It is planned to remove "GIMME" from a future release
        of Perl. Do not use it for new code; remove it from existing code.

        A backward-compatible version of "GIMME_V" which can only return
        "G_SCALAR" or "G_LIST"; in a void context, it returns "G_SCALAR".
        Deprecated. Use "GIMME_V" instead.

            U32  GIMME

But I see no mention of GIMME in pod/perldeprecation.pod. So shouldn't we be developing a plan and a timetable for its removal? Can anyone explain why we haven't done so already (e.g., it may be in use in darkpan code)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant