WerWolv / WerWolv/PatternLanguage

Variables declared using auto will not export

Open
#112 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
275
Forks
75
Avg merge
1d 22h
Merged PRs (30d)
10

Description

A member variable of a struct defined using auto must be a local variable since it needs an assignment to deduce its type. in theory local variables can be made visible in the pattern data window by using the [[export]] attribute. Define a simple structure with a local using auto and export has no effect. Switch it to a built in type and it shows.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Reproduce the struct with a local variable declared using auto and [[export]], compare it with the same variable using a built-in type, and trace the handling of type deduction and export visibility. Done means the auto-declared local appears in the pattern data window like the built-in-type version.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.