Setting/changing wildcards for ets in a nested record

Vlad Dumitrescu vlad_dumitrescu@REDACTED
Wed Feb 23 16:16:37 CET 2005


----- Original Message ----- 
From: "Gösta Ask (Mobile Arts)" <gosta.ask@REDACTED>
>      P = #person{},
>      R = set_deep_underscore(P),
>      {R, R#person{names = #name{last="Virding"}}}.

Hi,

You should use
      {R, R#person{names = (R#person.names)#name{last="Virding"}}}.

Otherwise, a new #name record is created, where the unnamed fields have the
value 'undefined'.

best regards,
Vlad




More information about the erlang-bugs mailing list