mirror of
https://github.com/urbit/shrub.git
synced 2024-11-24 13:06:09 +03:00
arvo: unflop the spur in scry
No longer use reversed paths in sley-style peek handling.
This commit is contained in:
parent
ba51599e15
commit
fb97528fd4
@ -200,7 +200,7 @@
|
||||
?. ?=(^ ved) ~
|
||||
=/ ron=@tas u.hyr
|
||||
=/ bed=beam
|
||||
[[u.fal u.dyc (case p.u.ved)] (flop tyl)]
|
||||
[[u.fal u.dyc (case p.u.ved)] tyl]
|
||||
=/ bop=(unit (unit (cask meta)))
|
||||
(sod ref ~ ron bed)
|
||||
?~ bop ~
|
||||
@ -453,7 +453,7 @@
|
||||
[%& p.bed]
|
||||
q.bed
|
||||
`coin`[%$ r.bed]
|
||||
(flop s.bed)
|
||||
s.bed
|
||||
==
|
||||
::
|
||||
:: |spin:plow:va: move statefully
|
||||
|
@ -644,7 +644,7 @@
|
||||
?- -.action
|
||||
%gen
|
||||
=/ bek=beak [our desk.generator.action da+now]
|
||||
=/ sup=spur (flop path.generator.action)
|
||||
=/ sup=spur path.generator.action
|
||||
=/ ski (scry [%141 %noun] ~ %ca bek sup)
|
||||
=/ cag=cage (need (need ski))
|
||||
?> =(%vase p.cag)
|
||||
@ -768,7 +768,7 @@
|
||||
++ do-scry
|
||||
|= [care=term =desk =path]
|
||||
^- (unit (unit cage))
|
||||
(scry [%141 %noun] ~ care [our desk da+now] (flop path))
|
||||
(scry [%141 %noun] ~ care [our desk da+now] path)
|
||||
::
|
||||
++ error-response
|
||||
|= [status=@ud =tape]
|
||||
@ -1650,7 +1650,7 @@
|
||||
=* desc=tape "from {(trip have)} to json"
|
||||
=/ tube=(unit tube:clay)
|
||||
=/ tuc=(unit (unit cage))
|
||||
(scry [%141 %noun] ~ %cc [our %home da+now] (flop /[have]/json))
|
||||
(scry [%141 %noun] ~ %cc [our %home da+now] /[have]/json)
|
||||
?. ?=([~ ~ *] tuc) ~
|
||||
`!<(tube:clay q.u.u.tuc)
|
||||
?~ tube
|
||||
|
@ -473,7 +473,7 @@
|
||||
|= [dap=term =case:clay]
|
||||
^- (each agent tang)
|
||||
=/ bek=beak [our %home case]
|
||||
=/ sky (ski [%141 %noun] ~ %ca bek /hoon/[dap]/app)
|
||||
=/ sky (ski [%141 %noun] ~ %ca bek /app/[dap]/hoon)
|
||||
?~ sky |+[leaf+"gall: {<dap>} scry blocked"]~
|
||||
?~ u.sky |+[leaf+"gall: {<dap>} scry failed"]~
|
||||
=/ =cage u.u.sky
|
||||
@ -903,7 +903,7 @@
|
||||
=/ =case:clay da+now
|
||||
=/ =mars:clay [p.cage mark]:deal
|
||||
=/ mars-path /[a.mars]/[b.mars]
|
||||
=/ sky (ski [%141 %noun] ~ %cc [our %home case] (flop mars-path))
|
||||
=/ sky (ski [%141 %noun] ~ %cc [our %home case] mars-path)
|
||||
?- sky
|
||||
?(~ [~ ~])
|
||||
=/ ror "gall: poke cast fail :{(trip dap)} {<mars>}"
|
||||
@ -1114,7 +1114,7 @@
|
||||
=/ =case:clay da+now
|
||||
=/ bek=beak [our %home case]
|
||||
=/ mars-path /[a.mars]/[b.mars]
|
||||
=/ sky (ski [%141 %noun] ~ %cc bek (flop mars-path))
|
||||
=/ sky (ski [%141 %noun] ~ %cc bek mars-path)
|
||||
?- sky
|
||||
?(~ [~ ~])
|
||||
%- (slog leaf+"watch-as fact conversion find-fail" >sky< ~)
|
||||
@ -1278,7 +1278,7 @@
|
||||
=/ tub=(unit tube:clay)
|
||||
?: =(have want) `(bake same ^vase)
|
||||
=/ tuc=(unit (unit cage))
|
||||
(ski [%141 %noun] ~ %cc [our %home da+now] (flop /[have]/[want]))
|
||||
(ski [%141 %noun] ~ %cc [our %home da+now] /[have]/[want])
|
||||
?. ?=([~ ~ *] tuc) ~
|
||||
`!<(tube:clay q.u.u.tuc)
|
||||
?~ tub
|
||||
|
Loading…
Reference in New Issue
Block a user