better type safety in %eyre injection

This commit is contained in:
Anton Dyudin 2015-07-09 15:50:52 -07:00
parent 6e26ecd5d3
commit 6977515ead

View File

@ -757,11 +757,14 @@
=+ bek=-:(need (tome p.tee))
=+ bik=?+(r.bek bek [%ud %0] bek(r da/now))
=- (pass-note tee (ford-req bik [%flag [p.sih `~] -]))
=- `silk`[%cast %mime `cay(q.q -)]
?. ?=([%ud 0] r.bek) q.q.cay
?+ p.cay q.q.cay :: inject dependency long-poll
%urb =| urb=[[%html ~] [[%head ~] marl] [[%body ~] manx marl] ~]
.*(.(urb q.q.cay) !=((inject p.sih urb)))
=- `silk`[%cast %mime `[p.cay -]]
?. ?=([%ud 0] r.bek) q.cay
?+ p.cay q.cay :: inject dependency long-poll
%urb =< (slam !>(.) q.cay)
|= urb=manx
~| %malformed-urb
?> ?=([[%html ~] [[%head ~] *] [[%body ~] ^] ~] urb)
(inject p.sih urb)
==
~| q.q.cay
=+ ((hard ,[mit=mite rez=octs]) q.q.cay)