what is wrong with this code setting a nested record?

MEENA SELVAM <>
Thu Jul 21 01:44:06 CEST 2005


Hi,

the parameter A is of record type arg, which contains
a subrecord of type, headers and which has a field
host:

The host field initially contains www.msn.com, and I
am trying to overwrite with 47.80.18.95, but the
following code doesnt work.. it still has www.msn.com
itself.

display_login2(A, ReplyMsgs, URL, IP, FromLogout) ->

    (A#arg.headers)#headers{host="47.80.18.95"},

am i doing anything wrong here?

meena


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the erlang-questions mailing list