phino-0.0.169: test-resources/evaluate-packs/binds-a-copy-whose-method-alone-reads-to-a-bare-symbol-as-it-is.yaml
# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
# A 'defer' line reduces only the arguments of a copy, never its methods
# (#2379). Here the method 'm' of 'step' reads to the bare symbol 'π1', but
# the argument 'tup' reads to an empty object, so the line binds the copy as
# it is, writes no 'deferred' line and mints no symbol.
symbolic: |
- Ξ»: L_hold
morph:
π1: $.b
defer:
π2: π1
π: β¦ Ο β¦ π2 β§
location: 'Q.y'
input: 'β¦ done β¦ β¦β§, step(tup) β¦ β¦ Ο β¦ Ξ¦.done, m β¦ Ξ¦.items.tail β§, items β¦ β¦ tail β¦ β¦ Ξ» β€ π1 β§, head β¦ β¦β§ β§, y β¦ β¦ b β¦ Ξ¦.step( tup β¦ Ξ¦.items.head ), Ξ» β€ L_hold β§.Ο β§'
result: 'β¦ tup β¦ Ξ¦.items.head, Ο β¦ Ξ¦.done, m β¦ Ξ¦.items.tail β§'
protocol: |
π(Ξ¦.y):
πΌ(L_hold):
π(ΞΎ.b):
remembered πΒ·1Β·1 β‘ Ξ¦.step # β¦ tup β¦ β
, Ο β¦ Ξ¦.done, m β¦ Ξ¦.items.tail β§
πΒ·1Β·2 β Ξ¦.step( tup β¦ Ξ¦.items.head )
πΒ·1Β·3 β β¦ tup β¦ Ξ¦.items.head, Ο β¦ Ξ¦.done, m β¦ Ξ¦.items.tail β§
remembered πΒ·1Β·3 β‘ πΒ·1Β·1( tup β¦ Ξ¦.items.head )
morphed πΒ·1Β·4 β πΒ·1Β·3
π1Β·1 β πΒ·1Β·4 # π(ΞΎ.b)
πΒ·1Β·5 β πΒ·1Β·4:Ο # π of L_hold
π(πΒ·1Β·5):
morphed πΒ·1Β·6 β πΒ·1Β·4:Ο
πΒ·1Β·7 β πΒ·1Β·6 # π(πΒ·1Β·5)
evaluated πΒ·1Β·8 β πΒ·1Β·7 # β¦ b β¦ πΒ·1Β·2, Ξ» β€ L_hold β§
morphed πΒ·0Β·1 β πΒ·1Β·4