Skip to content

cgen: keep interface typeof independent of builtin string#26812

Open
wenxuanjun wants to merge 1 commit intovlang:masterfrom
wenxuanjun:fix-interface-typeof-no-builtin
Open

cgen: keep interface typeof independent of builtin string#26812
wenxuanjun wants to merge 1 commit intovlang:masterfrom
wenxuanjun:fix-interface-typeof-no-builtin

Conversation

@wenxuanjun
Copy link
Copy Markdown
Contributor

@wenxuanjun wenxuanjun commented Apr 3, 2026

This regressed in #26772, which changed v_typeof_interface_* helpers from char * to string and introduced an unnecessary builtin string dependency into interface runtime support.

These helpers are part of runtime interface support and should not depend on builtin string machinery by default.

This PR restores v_typeof_interface_* to char *. Call sites that really need a V string now convert locally instead of pushing builtin string semantics into the helper itself.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f4fbba2766

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread vlib/v/gen/c/fn.v Outdated
@wenxuanjun wenxuanjun force-pushed the fix-interface-typeof-no-builtin branch from f4fbba2 to 4ae5b4c Compare April 3, 2026 04:43
@JalonSolov JalonSolov closed this Apr 6, 2026
@JalonSolov JalonSolov reopened this Apr 6, 2026
@JalonSolov JalonSolov closed this Apr 10, 2026
@JalonSolov JalonSolov reopened this Apr 10, 2026
@wenxuanjun wenxuanjun force-pushed the fix-interface-typeof-no-builtin branch from 4ae5b4c to 36ee17d Compare April 19, 2026 02:59
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.

2 participants