Changeset 4525 for trunk/compiler

Show
Ignore:
Timestamp:
10/21/08 03:54:02 (3 months ago)
Author:
pmoura
Message:

Added an optimization and security compiler option, "complements", that allows objects to be compiled with support for complementing categories either enabled or disabled. The default value (set in the config files) is "off" (disabled).

Added an optimization and security compiler option, "dynamic_declarations", that allows objects to be compiled with support for dynamic declaration of predicates (using the built-in database methods asserta/1 and assertz/1) either enabled or disabled. The default value (set in the config files) is "off" (disabled).

Updated the "complements" example to use the new "complements" compiler option. Update the "dynpred" example to use the new "dynamic_declarations" compiler option.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r4524 r4525  
    1385213852    '$lgt_default_flag'(smart_compilation, Smart), write(', smart_compilation: '), write(Smart), 
    1385313853    '$lgt_default_flag'(reload, Reload), write(', reload: '), write(Reload), nl, 
    13854     '$lgt_default_flag'(events, Events), write('  events: '), write(Events), 
     13854    '$lgt_default_flag'(complements, Complements), write('  complements: '), write(Complements), 
     13855    '$lgt_default_flag'(dynamic_declarations, DynamicDeclarations), write(', dynamic_declarations: '), write(DynamicDeclarations), 
     13856    '$lgt_default_flag'(events, Events), write(', events: '), write(Events), nl, 
    1385513857    (   '$lgt_default_flag'(hook, Hook) -> true 
    1385613858    ;   Hook = '(none defined)' 
    1385713859    ), 
    13858     write(', hook: '), write(Hook), 
     13860    write('  hook: '), write(Hook), 
    1385913861    '$lgt_default_flag'(tmpdir, TmpDir), write(', tmpdir: '), write(TmpDir), nl, 
    1386013862    write('Read-only compilation flags:'), nl,