anchor.diff:  %
   
   -module(reia).
  --export([init/0, load/1, execute_file/1, load_submodule/2]).
  +-export([init/0, load/1, compile/2, execute_file/1, load_submodule/2]).
   -include("reia_types.hrl").
   
   %
  
positive.code: %
  
  % Compile and load the given Reia source code
  compile_source(SourcePath, BinPath) ->
    {ok, Bin} = reia_compiler:file(SourcePath),
    file:write_file(BinPath, Bin),
    reia_bytecode:load_file(BinPath).
    
  % Internal function for loading code from the 'reia' command line script
  execute_file([Filename]) when is_atom(Filename) ->
  
negative.code:           % Ensure changes haven't been made to the sources
            if
              BinMtime > SourceMtime ->
                void;
              true ->
                compile(SourcePath, BinPath)
            end;
            
          % Otherwise compile the source code
          {error, _} ->
            compile(SourcePath, BinPath)
        end,
        reia_bytecode:load_file(BinPath);
      {error, _} = Error ->
        Error
    end.  
  