How do I modify a record in erlang?

Posted by Yadira Suazo on Stack Overflow See other posts from Stack Overflow or by Yadira Suazo
Published on 2010-04-26T17:32:18Z Indexed on 2010/04/26 23:23 UTC
Read the original article Hit count: 202

Filed under:
|
|
|

Hi, I need replace the same value for variables {place} and {other_place} in the record op.

#op{
    action   = [walk, from, {place}, to, {other_place}],
    preconds = [[at, {place}, me], [on, floor, me], 
                [other_place, {place}, {other_place}]],
    add_list = [[at, {other_place}, me]],
    del_list = [[at, {place}, me]]
}

But erlang don´t share variables. Is there any data type for that?

© Stack Overflow or respective owner

Related posts about erlang

Related posts about record