@cella-lang/cpp 0.1.202611030114 → 0.1.202611030754
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +10 -0
- package/cpp.arrays.cell +0 -0
- package/cpp.cell +0 -0
- package/cpp.classes.cell +0 -0
- package/cpp.classrules.cell +0 -0
- package/cpp.construction.cell +0 -0
- package/cpp.copies.cell +0 -0
- package/cpp.exceptions.cell +0 -0
- package/cpp.inheritance.cell +0 -0
- package/cpp.lambdas.cell +0 -0
- package/cpp.layouts.cell +0 -0
- package/cpp.library.maps.cell +0 -0
- package/cpp.library.sets.cell +0 -0
- package/cpp.library.strings.cell +0 -0
- package/cpp.memberpointers.cell +0 -0
- package/cpp.names.cell +0 -0
- package/cpp.objects.cell +0 -0
- package/cpp.operators.cell +0 -0
- package/cpp.overloading.cell +0 -0
- package/cpp.primitives.cell +0 -0
- package/cpp.ranges.cell +0 -0
- package/cpp.references.cell +0 -0
- package/cpp.runtimetypes.cell +0 -0
- package/cpp.standardfunctions.cell +0 -0
- package/cpp.staticmembers.cell +0 -0
- package/cpp.streams.cell +0 -0
- package/cpp.templates.cell +0 -0
- package/cpp.userconversions.cell +0 -0
- package/index.json +315 -299
- package/package.json +6 -6
package/CHANGES.md
CHANGED
|
@@ -5,8 +5,18 @@
|
|
|
5
5
|
|
|
6
6
|
## 未發佈
|
|
7
7
|
|
|
8
|
+
- 範圍 for 的範圍是大括號串列(`for (int q : {1, 10, 15})`,[stmt.ranged]p1):之前判 reject(expression is not assignable)。
|
|
9
|
+
元素是 const 的([dcl.init.list]p5),元素型別不同或空的串列推導不出型別,判 reject。
|
|
10
|
+
- `set`、`multiset`、`map` 的 `erase(first, last)` 與 `equal_range`,`map` 的 `lower_bound`、`upper_bound`,`string` 的 `erase(first, last)`。
|
|
11
|
+
- 兩個呼叫都只讀容器時(`s.erase(s.begin(), s.find(3))`、`s.find(1) == s.find(2)`),不再判 unknown(求值順序):
|
|
12
|
+
之前函式裡給指標變數賦值(走訪樹的 `x = x->left`)被當成寫到別處,`find`、`lower_bound`、`begin` 看起來都會寫。
|
|
13
|
+
|
|
8
14
|
### ⚠️ 不相容
|
|
9
15
|
|
|
16
|
+
- 函式庫的類別(std 的容器、字串,Arduino 的類別)的成員呼叫沒有相符的多載時,判 unknown(`unsupported`:「the model's 'X' has
|
|
17
|
+
no overload of 'f' for these arguments」),不再判 reject(no matching member function):模型的多載不一定是標準的全部,程式可能是對的。
|
|
18
|
+
和「函式庫的類別沒有這個名字的成員」一致;程式自己的類別照舊 reject。代價:呼叫的多載在標準裡也沒有的錯(例如 Uno 的
|
|
19
|
+
`EEPROM.begin(512)`)也變成 unknown。
|
|
10
20
|
- 判決每個問題的 `class` 改名為 `category`(判決由 @cella-lang/cfamily 產生,見它的變更紀錄)。
|
|
11
21
|
|
|
12
22
|
- `string::compare` 的值照 libc++:第一個不同字元的位元組差(`"apple".compare("apricot")` 是 -2,之前是 -1);標準只規定正負號,
|
package/cpp.arrays.cell
CHANGED
|
Binary file
|
package/cpp.cell
CHANGED
|
Binary file
|
package/cpp.classes.cell
CHANGED
|
Binary file
|
package/cpp.classrules.cell
CHANGED
|
Binary file
|
package/cpp.construction.cell
CHANGED
|
Binary file
|
package/cpp.copies.cell
CHANGED
|
Binary file
|
package/cpp.exceptions.cell
CHANGED
|
Binary file
|
package/cpp.inheritance.cell
CHANGED
|
Binary file
|
package/cpp.lambdas.cell
CHANGED
|
Binary file
|
package/cpp.layouts.cell
CHANGED
|
Binary file
|
package/cpp.library.maps.cell
CHANGED
|
Binary file
|
package/cpp.library.sets.cell
CHANGED
|
Binary file
|
package/cpp.library.strings.cell
CHANGED
|
Binary file
|
package/cpp.memberpointers.cell
CHANGED
|
Binary file
|
package/cpp.names.cell
CHANGED
|
Binary file
|
package/cpp.objects.cell
CHANGED
|
Binary file
|
package/cpp.operators.cell
CHANGED
|
Binary file
|
package/cpp.overloading.cell
CHANGED
|
Binary file
|
package/cpp.primitives.cell
CHANGED
|
Binary file
|
package/cpp.ranges.cell
CHANGED
|
Binary file
|
package/cpp.references.cell
CHANGED
|
Binary file
|
package/cpp.runtimetypes.cell
CHANGED
|
Binary file
|
|
Binary file
|
package/cpp.staticmembers.cell
CHANGED
|
Binary file
|
package/cpp.streams.cell
CHANGED
|
Binary file
|
package/cpp.templates.cell
CHANGED
|
Binary file
|
package/cpp.userconversions.cell
CHANGED
|
Binary file
|