Skip to content

Instantly share code, notes, and snippets.

@teh
Created August 1, 2015 13:49
Show Gist options
  • Save teh/8d37001516df3ef16d55 to your computer and use it in GitHub Desktop.
Save teh/8d37001516df3ef16d55 to your computer and use it in GitHub Desktop.
defined("flask", "test-module").
scope("module", "NONE").
scope("render", "test-module").
scope("render", "render-sub").
get_d(Name, CurrentScope) :- defined(Name, CurrentScope).
get_d(Name, PS) :- get_d(Name, PS), scope(CurrentScope, PS).
get_d("flask", A)?
% get_d(flask, test-module).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment