[erlang-questions] Two little questions

Olivier BOUDEVILLE <>
Mon Jul 16 18:16:11 CEST 2007


Hi,

sorry if it's an obvious question, but how to specify to the erl 
interpreter which include directories should be scanned for *.hrl file 
when using 'c(my_module).' ? (a I tried with no luck '-code_path_cache' 
and '-pa'/'-pz' (I suppose both must be for precompiled modules (beam)), 
but I did not find header counterparts (I lack the C/C++ -I directive). 
Had to create a symlink instead. 

Another question : -ifdef/-endif clauses cannot be used inside functions 
apparently, instead they may be used around helper functions, but if a 
non-exported function just end up being defined as :

"""
f() ->
        ok.
""" 

will calls to it (thus from the same module) be optimized away if they 
ignore its result ?

Thanks in advance for any hint,
best regards, 

Olivier.
---------------------------
Olivier Boudeville

EDF R&D : 1, avenue du Général de Gaulle, 92140 Clamart, France
Département SINETICS, groupe ASICS (I2A), bureau C-052
Office : 33 1 47 65 59 58 / Mobile : 33 6 16 83 37 22 / Fax : 33 1 47 65 
34 24
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070716/c3dd32c3/attachment.html>


More information about the erlang-questions mailing list