@cella-lang/cpp 0.1.202611071526 → 0.1.202611080415
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.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.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 +318 -318
- package/package.json +5 -5
package/CHANGES.md
CHANGED
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
## 未發佈
|
|
7
7
|
|
|
8
|
+
- **之前判 unknown(orderUncompared,why=access)、現在判 accept**:`std::to_string` 旁邊讀成員或經指標的值
|
|
9
|
+
(`return to_string(re) + (im < 0 ? "-" : "+") + to_string(im < 0 ? -im : im) + "i";`,re、im 是成員)。to_string 的本體只用
|
|
10
|
+
snprintf 寫自己的區域陣列,之前被算成「寫別處」。程式自己的函式用 snprintf、memcpy、strcpy 寫自己的區域陣列也一樣。真的寫到
|
|
11
|
+
被讀的記憶體的(經指標參數、寫全域陣列、寫成員陣列)照舊 unknown。根因與 API 見 `@cella-lang/cfamily`。
|
|
12
|
+
- **之前錯的 accept、現在 unknown**:呼叫寫全域變數或物件、旁邊讀它的元素或成員(`setg() + g[0]`);呼叫經 `auto` 推導的指標寫
|
|
13
|
+
(`auto p = g; p[0] = 5;`)、旁邊讀 `g[0]`。
|
|
14
|
+
|
|
8
15
|
- **之前判 reject(callArguments)、現在判 accept**:範圍建構子 `vector(i, j)`、`string(i, j)`、`deque(i, j)`([sequence.reqmts]
|
|
9
16
|
的 X(i, j);任何輸入迭代器)。`int a[3] = {3, 1, 2}; vector<int> v(a, a + 3); cout << v.size();` 印 3(之前「no matching
|
|
10
17
|
constructor for initialization of 'std::vector<int>'」);範圍可以是陣列的指標、另一個容器(vector、string、set、deque)的
|
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.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
|