@cella-lang/cpp 0.1.202611052037 → 0.1.202611060046

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.
Files changed (47) hide show
  1. package/CHANGES.md +6 -0
  2. package/cpp.arrays.cell +0 -0
  3. package/cpp.cell +0 -0
  4. package/cpp.classes.cell +0 -0
  5. package/cpp.classrules.cell +0 -0
  6. package/cpp.construction.cell +0 -0
  7. package/cpp.constructs.cell +0 -0
  8. package/cpp.copies.cell +0 -0
  9. package/cpp.exceptions.cell +0 -0
  10. package/cpp.inheritance.cell +0 -0
  11. package/cpp.lambdas.cell +0 -0
  12. package/cpp.layouts.cell +0 -0
  13. package/cpp.library.algorithms.cell +0 -0
  14. package/cpp.library.bitsets.cell +0 -0
  15. package/cpp.library.cell +0 -0
  16. package/cpp.library.comparisons.cell +0 -0
  17. package/cpp.library.deques.cell +0 -0
  18. package/cpp.library.iterators.cell +0 -0
  19. package/cpp.library.lists.cell +0 -0
  20. package/cpp.library.maps.cell +0 -0
  21. package/cpp.library.numerics.cell +0 -0
  22. package/cpp.library.pairs.cell +0 -0
  23. package/cpp.library.queues.cell +0 -0
  24. package/cpp.library.sets.cell +0 -0
  25. package/cpp.library.stacks.cell +0 -0
  26. package/cpp.library.strings.cell +0 -0
  27. package/cpp.library.trees.cell +0 -0
  28. package/cpp.library.unorderedmaps.cell +0 -0
  29. package/cpp.library.vectors.cell +0 -0
  30. package/cpp.memberpointers.cell +0 -0
  31. package/cpp.names.cell +0 -0
  32. package/cpp.objects.cell +0 -0
  33. package/cpp.operators.cell +0 -0
  34. package/cpp.overloading.cell +0 -0
  35. package/cpp.polymorphism.cell +0 -0
  36. package/cpp.primitives.cell +0 -0
  37. package/cpp.ranges.cell +0 -0
  38. package/cpp.references.cell +0 -0
  39. package/cpp.runtimetypes.cell +0 -0
  40. package/cpp.standardexceptions.cell +0 -0
  41. package/cpp.standardfunctions.cell +0 -0
  42. package/cpp.staticmembers.cell +0 -0
  43. package/cpp.streams.cell +0 -0
  44. package/cpp.templates.cell +0 -0
  45. package/cpp.userconversions.cell +0 -0
  46. package/index.json +895 -895
  47. package/package.json +4 -4
package/CHANGES.md CHANGED
@@ -5,6 +5,12 @@
5
5
 
6
6
  ## 未發佈
7
7
 
8
+ - **之前判 accept、現在判 reject(`ubFlowOffEnd`)**:回傳值的函式(main 除外,含成員函式、寫了回傳型別的 lambda)執行到結尾、
9
+ 沒有 return,只呼叫不用值(`int f() {} ... f();`)。C++17 [stmt.return]p2:執行到結尾本身就是未定義行為。用到值的
10
+ (`int y = f();`)判決照舊是 reject,但種類從 `ubUninit`(`C++17 [dcl.init]p12`,at 是呼叫)改成 `ubFlowOffEnd`(`C++17 [stmt.return]p2`,
11
+ at 是函式的定義)。只有走到結尾的那次呼叫才算(`if (x) return 1;` 的 `g(1)` 照舊 accept);void 函式、main(結束碼 0)、推導成 void
12
+ 的 lambda 不受影響。見 `@cella-lang/cfamily` 的變更。
13
+
8
14
  - 執行期的問題帶出問題的值(見 `@cella-lang/cfamily`;**reason 文字不變**):`ubBounds` 的 `index`、`size`(指標算術;容器的下標
9
15
  `v[i]` 也帶:vector、deque、string、bitset 的 `operator[]`;空容器的 front/back/pop 不帶)、`ubPastEnd` 的 `index`、`size`、
10
16
  `ubOverflow` 的 `type`、`op`、`left`、`right`、`ubDivZero` 的 `op`、`fuel` 的 `steps`。
package/cpp.arrays.cell CHANGED
Binary file
package/cpp.cell CHANGED
Binary file
package/cpp.classes.cell CHANGED
Binary file
Binary file
Binary file
Binary file
package/cpp.copies.cell CHANGED
Binary file
Binary file
Binary file
package/cpp.lambdas.cell CHANGED
Binary file
package/cpp.layouts.cell CHANGED
Binary file
Binary file
Binary file
package/cpp.library.cell CHANGED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/cpp.names.cell CHANGED
Binary file
package/cpp.objects.cell CHANGED
Binary file
Binary file
Binary file
Binary file
Binary file
package/cpp.ranges.cell CHANGED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/cpp.streams.cell CHANGED
Binary file
Binary file
Binary file