Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F4001237
context-v1.lp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jul 9, 6:07 AM
Size
1 KB
Mime Type
text/plain
Expires
Sat, Jul 11, 6:07 AM (1 d, 2 h)
Engine
blob
Format
Raw Data
Handle
273396
Attached To
rXR Xreate
context-v1.lp
View Options
%INPUT:
% kleo_registered_subjects(Scope, Option, Subject)
%bind_scope_decision - scope has decision for demand of one of its subscopes.
% CLIENTS
%===========================================================
% clients defined downstream
%Register fn argument demand
kleo_registered_subjects(ScopeCaller, kleo_arg(Subject), Guard):-
kleo_fn_demand(Fn, Subject);
cfa_parent(ScopeCallee, function(Fn));
kleo_registered_subjects(ScopeCallee, Subject, Guard);
cfa_call(ScopeCaller, Fn).
% DEMAND
%===========================================================
%local demand
kleo_scope_demand(Scope, Subject):-
not kleo_scope_decision(Scope, Subject, _);
kleo_registered_subjects(Scope, Subject, Decision).
%demand propagation: scope
kleo_scope_demand(Scope, Subject):-
kleo_scope_demand(ScopeChild, Subject);
cfa_parent(ScopeChild, scope(Scope)).
%propagation: interfn
kleo_fn_demand(Fn, Subject):-
kleo_scope_demand(ScopeFnBody, Subject);
cfa_parent(ScopeFnBody, function(Fn)).
% DECISIONS
%===========================================================
%local decision
kleo_scope_decision(Scope, Subject, Decision):-
bind_scope(Scope, Decision, strong);
kleo_registered_subjects(Scope, Subject, Decision).
%interfn decision
%kleo_scope_decision(ScopeSource, parameter(Subject), Decision):-
% weak(bind_scope(Scope, Decision), ScopeSource);
% kleo_registered_subjects(Scope, Subject, Decision).
Event Timeline
Log In to Comment