@cella-lang/cpp 0.1.202611050546 → 0.1.202611051127
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 +7 -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.constructs.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.bitsets.cell +0 -0
- package/cpp.library.cell +0 -0
- package/cpp.library.deques.cell +0 -0
- package/cpp.library.strings.cell +0 -0
- package/cpp.library.vectors.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.polymorphism.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.standardexceptions.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 +464 -460
- package/package.json +6 -6
package/CHANGES.md
CHANGED
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
## 未發佈
|
|
7
7
|
|
|
8
|
+
- 執行期的問題帶出問題的值(見 `@cella-lang/cfamily`;**reason 文字不變**):`ubBounds` 的 `index`、`size`(指標算術;容器的下標
|
|
9
|
+
`v[i]` 也帶:vector、deque、string、bitset 的 `operator[]`;空容器的 front/back/pop 不帶)、`ubPastEnd` 的 `index`、`size`、
|
|
10
|
+
`ubOverflow` 的 `type`、`op`、`left`、`right`、`ubDivZero` 的 `op`、`fuel` 的 `steps`。
|
|
11
|
+
- 函式庫的原語 `__cella_out_of_bounds(index, size)`(兩個引數的多載,`lib/cella.hpp`):越界並帶出索引與元素數;`EnvironmentStatement`
|
|
12
|
+
多一個建構子 `indexOutside`、`Primitives.outOfBounds` 是新的(**不相容**:依建構子分派的地方要多一支)。重新生成的模組:
|
|
13
|
+
`cpp.library.vectors`、`deques`、`strings`、`bitsets`。
|
|
14
|
+
|
|
8
15
|
- 空的 vector(沒配置過元素)的 `begin()`、`end()` 之前判 reject(`ubBounds`,`end()` 是空指標加 0),範圍 for 走空的 vector、`v.begin() == v.end()`、
|
|
9
16
|
`sort(v.begin(), v.end())` 都中;現在照 C++17 [expr.add]p4.1、p5.1:空指標加減 0 是空指標、兩個空指標相減是 0,判 accept(輸出和 clang 一致)。
|
|
10
17
|
- **之前判 accept、現在判 reject(`redeclared`)**,clang++ 都是編譯錯誤:同一個區塊宣告兩次同名變數(`int x; int x;`、`int x(1); int x(2);`)、
|
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.constructs.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.bitsets.cell
CHANGED
|
Binary file
|
package/cpp.library.cell
CHANGED
|
Binary file
|
package/cpp.library.deques.cell
CHANGED
|
Binary file
|
package/cpp.library.strings.cell
CHANGED
|
Binary file
|
package/cpp.library.vectors.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.polymorphism.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
|
|
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
|