feat(cfc): storage mode (REF= assignment) - #1891
Open
volsa wants to merge 1 commit into
Open
Conversation
Problem: The IDE defines a REF= storage mode on data sinks beside Set/Reset, re-pointing a REFERENCE TO sink at its source. The compiler had no such mode, so reference assignments could not be drawn in CFC. Solution: Extend the storage enum with a Reference mode and lower such sinks to `sink REF= source`, reusing the core compiler's reference assignment validation and codegen. An address has no negation, so a negation bubble anywhere on a REF= wire is rejected with E154. Refs: PRG-4533 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
volsa
force-pushed
the
vosa/ref-assignment
branch
from
August 27, 2026 07:14
9ba5ace to
69291e2
Compare
volsa
marked this pull request as ready for review
August 27, 2026 07:19
Build Artifacts🪟 Windows
From workflow run 🐧 Linux
From workflow run |
ghaith
approved these changes
Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem: The IDE allows for a
REF=storage mode similar to set/reset (see #1851), the transpiler however does not support that case.Solution: Adapt the data model, support
REF=assignments for data sinks. Transpile such data sinks into a simple<left> REF= <right>assignment and (mostly) rely on the compilers validation for invalid cases.Refs: PRG-4533