forked from chapel-lang/chapel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stabilize atomic formal and type names (chapel-lang#22859)
[Reviewed by @jeremiah-corrado] Switch the atomic formal `value` to `val` and change the value type from `T` to `valType`. `valType` was chosen to match syncs and be similar to `eltType` on arrays and `idxType`. The formal name `val` was then used to match `valType` and so we could distinguish the stored "value" in the atomic and the name of the formal more easily. The `value`->`val` formal renaming is being done without deprecation since we believe named args are never used with atomics and if we had a way to disable named args we may have just used that. Part of Cray/chapel-private#3730 Resolves chapel-lang#20182
- Loading branch information
Showing
11 changed files
with
352 additions
and
330 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
$CHPL_HOME/modules/internal/Atomics.chpl:nnnn: In function 'chpl__atomicType': | ||
$CHPL_HOME/modules/internal/Atomics.chpl:nnnn: error: Unsupported atomic type: string | ||
callstack-internal-modules.chpl:28: called as chpl__atomicType(type T = string) from function 'foo' | ||
callstack-internal-modules.chpl:28: called as chpl__atomicType(type valType = string) from function 'foo' | ||
callstack-internal-modules.chpl:24: called as foo() from function 'bar' | ||
callstack-internal-modules.chpl:20: called as bar() from function 'main' |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.