You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR makes the following changes, mostly in the language spec:
* Remove the difference between the definitions of "the range has
ambiguous alignment" and "the range is ambiguously aligned".
* Add implicit conversions for ranges and updates explicit conversions
for ranges and domains.
* Remove several counter-productive where-clauses from online docs.
* Indicate that `domain` written by itself is generic.
TODO:
* [ ] Add implicit conversions for domains.
* [ ] Move these configs out of the spec because they are
purely about the implementation:
newSliceRule, newRangeLiteralType, noNegativeStrideWarnings.
* [ ] Replace "ambiguously aligned" and "alignment is unambiguous"
with "[un]aligned" throughout ChapelRange.chpl.
r: @DanilaFe
/* Returns ``true`` if the range's alignment is unambiguous,
693
695
``false`` otherwise. */
696
+
pragma"no where doc"
694
697
inlineprocrange.isAligned() where !hasParamAligned() do
695
698
return _alignment != unalignedMark;
696
699
@@ -699,6 +702,7 @@ module ChapelRange {
699
702
700
703
/* Returns ``true`` if the range's alignment is unambiguous,
701
704
``false`` otherwise. */
705
+
pragma"no where doc"
702
706
@deprecated("'range.aligned' is deprecated; please use '.isAligned()' instead")
703
707
inlineprocrange.aligned where !hasParamAligned() do
704
708
return isAligned();
@@ -1242,6 +1246,7 @@ module ChapelRange {
1242
1246
1243
1247
/* Returns ``true`` if this range is naturally aligned, ``false``
1244
1248
otherwise. */
1249
+
pragma"no where doc"
1245
1250
@deprecated("'range.isNaturallyAligned()' is deprecated; please feel encouraged to file a GitHub issue requesting it: https://github.com/chapel-lang/chapel/issues")
1246
1251
procrange.isNaturallyAligned()
1247
1252
where ! hasPosNegUnitStride() && bounds != boundKind.neither
@@ -1253,6 +1258,7 @@ module ChapelRange {
1253
1258
doreturn chpl_isNaturallyAligned();
1254
1259
1255
1260
// tells whether omitting the 'align' clause results in the same range
1261
+
pragma"no where doc"
1256
1262
procrange.chpl_isNaturallyAligned()
1257
1263
where ! hasPosNegUnitStride() && bounds != boundKind.neither
1258
1264
doif bounds == boundKind.both {
@@ -1274,6 +1280,7 @@ module ChapelRange {
1274
1280
1275
1281
/* Returns ``true`` if the range is ambiguously aligned, ``false``
1276
1282
otherwise. */
1283
+
pragma"no where doc"
1277
1284
@deprecated("'range.isAmbiguous()' is deprecated; please use '! range.isAligned()' instead")
1278
1285
procrange.isAmbiguous() paramwhere hasPosNegUnitStride() do
0 commit comments