[erlang-questions] A subtyping system for Erlang
Edmond Begumisa
ebegumisa@REDACTED
Fri Oct 11 14:40:04 CEST 2019
Thanks Björn and Sven,
Indeed, I looked again and found that make compiled all files except
con.beam (there's no ../ebin/con.beam -- I should have noticed that
before, although make should have at least failed with an error instead of
silently skipping over that target). And like Björn said, from the shell...
>>>
7> make:files(["con.erl"], [{outdir,"../ebin"}]).
Recompile: con
con.erl: bad file number
error
>>>
The previous errors make perfect sense now. It's the code server crashing
when trying to find con.beam in all the code paths because of the reserved
name.
- Edmond -
On Fri, 11 Oct 2019 22:29:48 +1000, Björn Gustavsson <bjorn@REDACTED>
wrote:
> On Fri, Oct 11, 2019 at 2:15 PM Sven-Olof Nystrom <svenolof@REDACTED>
> wrote:
>>
>> The subtyping system contains a module con.erl. If the name conflicts
>> with some module in the standard library, I could rename it. But as
>> far as I can tell, there is no module con.erl in the library
>> "syntax_tools".
>
> On Windows, CON is the reserved named for the console. Since file
> names are case insensitive, "con" also refers to the console, as does
> "con" with any extension. Thus, "con.beam" is a reference to the
> console. You should rename your module.
>
> /Björn
>
>
--
Using Opera's mail client: http://www.opera.com/mail/
More information about the erlang-questions
mailing list