@cella-lang/cpp 0.1.202611042110 → 0.1.202611050117

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 CHANGED
@@ -5,6 +5,10 @@
5
5
 
6
6
  ## 未發佈
7
7
 
8
+ - 型別查詢:回傳參照的呼叫的節點是去掉參照的型別(隱含轉換之前):`s[0]`、`s.at(0)` 是 `char`,`v[0]`、`v.front()`、`v.back()`、
9
+ `m["k"]`、自訂 class 的 `operator[]`(回傳 `int &`)是 `int`,回傳 `const int &` 的成員函式與 `std::max(x, y)` 是 `const int`;
10
+ 之前是模型存參照用的位址的型別(`char *`、`int *`、`const int *`)。參照變數 `r`(`int &r = x`)、當左值的條件 `c ? x : y`、
11
+ 方法裡單獨用的成員 `k`(`this->k`)也一樣(之前是 `int *`、`int *`、`C *`)。只改查詢,判決與問題的節點不變。
8
12
  - `scanf`/`std::scanf`、`printf`/`std::printf` 當運算式(見 `@cella-lang/cfamily`):之前是 unsupported(「scanf is not supported yet」)。
9
13
  - 型別查詢的成員呼叫:`v.size()`、`s.length()`、`c.get()`、`it->get()`(經過 `operator->`)的節點是呼叫結果的型別;之前是合成的
10
14
  接收者 `&obj` 的型別(`std::vector<int> *`、`std::string *`)。基底的資料成員 `d.k` 與經過 `operator->` 的 `it->k` 也是成員的型別
package/cpp.cell CHANGED
Binary file
package/index.json CHANGED
@@ -4791,7 +4791,7 @@
4791
4791
  "own": "88186a183c481caa70c6e16860542cd79416cff367d602e249e8abc2ebdc12a5"
4792
4792
  },
4793
4793
  "cpp.types": {
4794
- "merkle": "8e4ceef9ad9104fb431306dcaf209fb0e570fa57a6208a266134e399bd50404f",
4794
+ "merkle": "71564acfeaa5d5b9ea61b8615eb8afbfefa40234ed6858fa0b2de4f3a74bb3cd",
4795
4795
  "own": "9f1ac68cd69193887d826706a0ff6fa68cc161e6691601fa76c7139538cca8e7"
4796
4796
  },
4797
4797
  "cpp.verdict": {
@@ -4800,10 +4800,10 @@
4800
4800
  }
4801
4801
  },
4802
4802
  "format": 1,
4803
- "inputs": "54cccc7ea933e0e418563cccbddb10d5acebe86d5ef9da6bb6750269c008df10",
4803
+ "inputs": "3bf9973e0c0569dd2ada37690746ad2ff33d96d38cec6242a7dcbdb0831019f9",
4804
4804
  "modules": {
4805
4805
  "cpp": {
4806
- "bytes": 689596,
4806
+ "bytes": 689707,
4807
4807
  "deps": [
4808
4808
  "cpp.constructs",
4809
4809
  "cpp.layouts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cella-lang/cpp",
3
- "version": "0.1.202611042110",
3
+ "version": "0.1.202611050117",
4
4
  "description": "C++17 for Cella Lang, as a branch of the C family's deep embedding (@cella-lang/cfamily): classes, templates, overloading, references, exceptions, lambdas and the standard library's vector and string written in C++ itself; verdicts (accept, reject, unknown with the clause of the standard), a type query and a debugger host interface — compiled module pack.",
5
5
  "files": [
6
6
  "cpp.arrays.cell",
@@ -67,8 +67,8 @@
67
67
  "homepage": "https://cella-lang.org/",
68
68
  "peerDependencies": {
69
69
  "cella-lang": "0.1.202611042110",
70
- "@cella-lang/cfamily": "0.1.202611042110",
71
- "@cella-lang/machine": "0.1.202611042110"
70
+ "@cella-lang/cfamily": "0.1.202611050117",
71
+ "@cella-lang/machine": "0.1.202611050117"
72
72
  },
73
73
  "cella": {
74
74
  "checkerHash": "138f758afecea3bf",
@@ -76,6 +76,6 @@
76
76
  "modules": [
77
77
  "cpp"
78
78
  ],
79
- "packHash": "d03fff98fe6b2442"
79
+ "packHash": "5ad63b1dc68beaa2"
80
80
  }
81
81
  }