<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">It’s considered an unknown module attribute, and those aren’t errors.<br class=""><div><blockquote type="cite" class=""><div class="">30 янв. 2017 г., в 18:38, <a href="mailto:john.hughes@quviq.com" class="">john.hughes@quviq.com</a> написал(а):</div><br class="Apple-interchange-newline"><div class="">
<meta content="text/html charset=utf-8" http-equiv="Content-Type" class="">
<div style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space" dir="ltr" class="">
<div dir="ltr" class="">
<div style="font-size: 12pt; font-family: Calibri;" class="">
<div class="">So why isn’t that reported as an error?</div>
<div class=""> </div>
<div class="">John</div>
<div style="font-size: small; text-decoration: none; font-family: Calibri; font-weight: normal; font-style: normal; display: inline;" class="">
<div style="FONT: 10pt tahoma" class="">
<div class=""> </div>
<div style="BACKGROUND: #f5f5f5" class="">
<div style="font-color: black" class=""><b class="">From:</b> <a title="alex0player@gmail.com" href="mailto:alex0player@gmail.com" class="">Alex S.</a> </div>
<div class=""><b class="">Sent:</b> Monday, January 30, 2017 4:31 PM</div>
<div class=""><b class="">To:</b> <a title="john.hughes@quviq.com" href="mailto:john.hughes@quviq.com" class="">john.hughes@quviq.com</a> </div>
<div class=""><b class="">Cc:</b> <a title="erlang-questions@erlang.org" href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a> </div>
<div class=""><b class="">Subject:</b> Re: [erlang-questions] For your amusement--why doesn't this 
compile?</div></div></div>
<div class=""> </div></div>
<div style="font-size: small; text-decoration: none; font-family: Calibri; font-weight: normal; font-style: normal; display: inline;" class="">
<div class=""> </div>
<div class="">
<blockquote type="cite" class="">
  <div class="">30 янв. 2017 г., в 18:24, <<a href="mailto:john.hughes@quviq.com" class="">john.hughes@quviq.com</a>> <<a href="mailto:john.hughes@quviq.com" class="">john.hughes@quviq.com</a>> 
  написал(а):</div>
  <div class=""> </div>
  <div class="">
  <div dir="ltr" class="">
  <div dir="ltr" class="">
  <div style="FONT-SIZE: 12pt; FONT-FAMILY: calibri" class="">
  <div class="">Here’s a behaviour that’s had me tearing my hair today. Consider this 
  module:</div>
  <div class=""> </div>
  <div class="">-module('Aaargh!!').</div>
  <div class="">-define(PLEASE_DONT).</div>
  <div class="">-ifndef(PLEASE_DONT).</div>
  <div class="">-compile({parse_transform,undefined_parse_transform}).</div>
  <div class="">-endif.</div>
  <div class=""> </div>
  <div class="">It fails to compile, with one simple error message:</div>
  <div class=""> </div>
  <div class="">20> c('Aaargh!!').</div>
  <div class="">Aaargh!!.erl: undefined parse transform 'undefined_parse_transform'</div>
  <div class="">error</div>
  <div class=""> </div>
  <div class="">If you can see why, you’re more an Erlang wizard than I am!</div>
  <div class=""> </div></div></div></div></div></blockquote>Easy enough, there’s no 
one-argument define().</div>
<div class=""> </div>
<div class="">Define it to true if you don’t care about the value.</div>
<div class=""> </div></div></div></div></div>
</div></blockquote></div><br class=""></body></html>