[erlang-questions 47] Re: wxWidgets draft/stub tutorial available

Ulf Wiger ulf.wiger@REDACTED
Sun Mar 27 10:13:37 CEST 2011


On 27 Mar 2011, at 09:24, Michael Turner wrote:

> However, the Erlang shell, wx's rather slavish mimicking of the wxWidgets C++ API, and the process architecture of wx as an "application" have all hindered me somewhat, for the "build simple GUIs mostly from the command line" goal.
> 
> For example, there's no way to define macros in the Erlang shell, much less a way to read macro definitions from a header file; and wx relies heavily on macro definitions.  Making the reader look up the macro values in the headers and supply them as "magic numbers" in the Erlang shell feels distinctly sub-optimal.

This gives me an excuse to mention my old shell extension hack,

http://ulf.wiger.net/weblog/2007/11/21/extending-the-erlang-shell-part-2/

which allowed for a way to define modules from the shell, support alternative parsers, and also import macros in the same way as the current shell imports record definitions.

The code would need to be ported to R14B, and included an extension to eep.erl, among other things.

BR,
Ulf W

Ulf Wiger, CTO, Erlang Solutions, Ltd.
http://erlang-solutions.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110327/476e0a80/attachment.htm>


More information about the erlang-questions mailing list