[erlang-questions] Unable to call functions that are in a module in the same location

Yves S. Garret yoursurrogategod@REDACTED
Sat Sep 6 17:19:47 CEST 2014


Yes!  That was another mistake.

Now, when I run it, this is what I see (which doesn't surprise me):
> genotype:test().
Morphology: xor_mimic
{aborted,{no_exists,neuron}}


On Fri, Sep 5, 2014 at 4:25 AM, Tuncer Ayaz <tuncer.ayaz@REDACTED> wrote:

> On Fri, Sep 5, 2014 at 3:39 AM, Yves S. Garret wrote:
> > Hi,
> >
> > Thanks for your reply. You're right, I did screw that up. This is
> > after I made the proper fix:
> >
> > 6> genotype:test().
> > Morphology: xor_mimic
> > {aborted,{undef,[{random,unifrom,[],[]},
>
> unifrom -> uniform
>
> >                  {genotype,construct_InitialNeurons,6,
> >                            [{file,"genotype.erl"},{line,101}]},
> >                  {genotype,construct_InitialNeuroLayer,7,
> >                            [{file,"genotype.erl"},{line,84}]},
> >                  {genotype,construct_Cortex,3,
> >                            [{file,"genotype.erl"},{line,51}]},
> >                  {genotype,construct_Agent,3,
> >                            [{file,"genotype.erl"},{line,20}]},
> >                  {genotype,'-test/0-fun-0-',0,
> >                            [{file,"genotype.erl"},{line,420}]},
> >
> > {mnesia_tm,apply_fun,3,[{file,"mnesia_tm.erl"},{line,830}]},
> >                  {mnesia_tm,execute_transaction,5,
> >                             [{file,"mnesia_tm.erl"},{line,810}]}]}}
> >
> > I kept digging in here and then this is what I've found. The AgentId
> > (in test/0) is set to test. However, when the attempt is made to
> > retrieve it, obviously, it gives me the above error.
> >
> > I think I need to keep reading and try to better understand what
> > Gene Sher is trying to pull together here.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140906/74fad279/attachment.htm>


More information about the erlang-questions mailing list