[erlang-questions] A few type-related 18.0 questions

Olivier BOUDEVILLE <>
Mon Jul 20 11:19:37 CEST 2015


Hello Tuncer,
 
> 1. M1 exists as a file
> 
> 2. M1 call M2:gimme_data/1, say in M1:do_stuff/3
> 
> 3. M2 only exists at runtime without a corresponding file
> 
> 4. The warning is about a call to M2:gimme_data/1 which is
>    unknown because M2 doesn't exist (yet).
> 
> Assuming I got this right, you would add
> 
> -dialyzer({no_missing_calls, do_stuff/3})
> 
> in M1.erl, to avoid the warning.

Indeed, you got it right, however, unless I made clumsy mistakes, in 
M1.erl (using your example functions), no combination of: 

         -dialyzer( { no_missing_calls, do_stuff/3 } ).

and/or 

         -dialyzer( { nowarn_function, do_stuff/3 } ).

prevents Dialyzer from telling that functions like M2:gimme_data/1 are 
unknown. 

I was thinking that functions specified in the -dialyzer attribute are the 
callee ones, not the caller ones (that's why I wanted to see whether we 
could specify a module for them, if they were not M1-local).

Anyway, not a big problem. Maybe in the future separate suppression files 
(listing the warnings to be suppressed regardless of the call site) will 
be supported (supposing it is not supported yet).

Thanks for your time!

Best,

Olivier.


 
Olivier BOUDEVILLE
EDF – R&D
Département SINETICS, Groupe ASICS, Bureau B-226
1, avenue du Général de Gaulle
92140 Clamart
 

Tél. : +33 (0)1 47 65 59 58
Tél. mobile : +33 (0)6 16 83 37 22
Fax : +33 (0)1 47 65 27 13

Un geste simple pour l'environnement, n'imprimez ce message que si vous en 
avez l'utilité.




Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
____________________________________________________

This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150720/73ccea61/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1816 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150720/73ccea61/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1151 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150720/73ccea61/attachment-0001.gif>


More information about the erlang-questions mailing list