You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{⟦
c ↦ ξ.number(as-bytes ↦ ⟦ Δ ⤍ 40-39-00-00-00-00-00-00 ⟧),
φ ↦ ξ.c.times(x ↦ ⟦ Δ ⤍ 3F-FC-CC-CC-CC-CC-CC-CD ⟧).plus(x ↦ ⟦ Δ ⤍ 40-40-00-00-00-00-00-00 ⟧),
number ↦ ⟦
as-bytes ↦ ∅,
times ↦ ⟦ x ↦ ∅, λ ⤍ Lorg_eolang_number_times ⟧,
plus ↦ ⟦ x ↦ ∅, λ ⤍ Lorg_eolang_number_plus ⟧,
⟧
⟧}
This is very similar to what you have in the dataization.yaml test case, but I'm not importing the entire number.phi and don't use bytes.phi. I believe, my example should work.
φ ↦ ξ.as-bytes in the definition of number. This is important for the atoms (plus and times) to be able to dataize their arguments.
Since atoms wrap their results in Φ.org.eolang.number(as-bytes ↦ Φ.org.eolang.bytes(Δ ⤍ ...)), it is important that those are defined, so Φ.org.eolang.number and Φ.org.eolang.bytes need to be defined.
When using dataize, you need to add --as-package or add λ ⤍ Package explicitly to the global object.
Also, using φ in a global object may lead to infinite dataization. This is because atoms produce Φ.org.eolang.something and then when the global object does not have org dataization tries to go into φ, resulting in a loop.
I'm doing it like this:
This is very similar to what you have in the
dataization.yaml
test case, but I'm not importing the entirenumber.phi
and don't usebytes.phi
. I believe, my example should work.I'm running it like this:
It's not getting to a single data, but prints:
What it's unknown? It's exactly the same atom as in
number.phi
.The text was updated successfully, but these errors were encountered: