Skip to content

fix: preserve dynamic typeglob calls in print arguments - #1168

Merged
fglock merged 1 commit into
masterfrom
fix/issue-1163
Aug 27, 2026
Merged

fix: preserve dynamic typeglob calls in print arguments#1168
fglock merged 1 commit into
masterfrom
fix/issue-1163

Conversation

@fglock

@fglock fglock commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Preserve explicit bareword calls as print arguments when a typeglob has an I/O placeholder.
  • Accept print(bar(), "\n") as an argument-list form instead of filehandle syntax.
  • Add system-Perl-validated regression coverage for dynamically installed CODE slots.

Closes #1163.

Verification

  • prove src/test/resources/unit/typeglob_print_dynamic_sub.t
  • make
  • timeout 60 ./jperl src/test/resources/unit/typeglob_print_dynamic_sub.t
  • timeout 60 ./jperl --interpreter src/test/resources/unit/typeglob_print_dynamic_sub.t

Generated with Codex

Keep explicit bareword calls out of print filehandle disambiguation so
runtime typeglob CODE assignments remain callable in both parenthesized
and unparenthesized print forms.

Generated with [Codex](https://openai.com/codex/)

Co-Authored-By: Codex <codex@openai.com>
@fglock
fglock marked this pull request as ready for review August 27, 2026 20:19
@fglock
fglock merged commit 6ba89d5 into master Aug 27, 2026
2 checks passed
@fglock
fglock deleted the fix/issue-1163 branch August 27, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: call subs installed through a typeglob in bareword print arguments

1 participant