Hi,<br><br>Has anyone actually run the final example in "Getting started with Erlang", that messenger example with macro and record ?<br>I hit some weird problem. So I can log in to the server successfully but whenever sending a message to other (including myself), the erlang shell always return "<b>receiver_not_found</b>" error.<br>
<br>I print the User_List and find something weird. So User_List is constructed as [{From, Name} | User_List], but when print it (using ~p), User_list looks like User list = [{<5241.36.0>,<b>[qiu]</b>},{<5164.36.0>,<b>[tom]</b>}] instead of User list = [{<5241.36.0>,<b>qiu</b>},{<5164.36.0>,<b>tom</b>}]. I am not sure it is the print issue or the element of User_List does become { From, [Name] } instead of { From, Name }. <br>
<br>I guess this is the reason why <b>lists:keysearch</b>(To, 2, User_List) does not find the login user.<br><br>So has anyone ever hit this problem ? <br><br>Thanks!<br><br>BTW I run it on Windows XP.<br><br>