Closing parenthesis optional for -define?

Tamas Patrovics tpatro@REDACTED
Tue Sep 27 10:47:00 CEST 2005


This code (note the lack of a closing parenthesis in the -define line)
can be compiled and works as expected. Is it a feature? epp_dodger
chokes on it with a syntax error..

-module(test).

-export([func/0]).

-define(a, 1.

func() ->
    2 + ?a.



More information about the erlang-questions mailing list