<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Reference Manual says:</FONT></DIV>
<DIV>
<P><FONT face=Arial size=2>To each module using records, a pseudo function is 
added >> during compilation << to obtain information about 
records: </FONT><PRE><FONT face=Arial size=2>record_info(fields, Record) -> [Field]
record_info(size, Record) -> Size
</FONT></PRE><PRE><FONT face=Arial size=2>It's understandable, but is it not a good idea to include it to erlang shell??</FONT></PRE></DIV>
<DIV><FONT face=Arial size=2>thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sanjaya Vitharana.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2> rl().<BR>ok<BR>3> <BR>3> 
A=rd(a,{b,c,d}). <BR>a<BR>4> 
A.              
<BR>a<BR>5> rl().           
<BR>-record(a,{b,c,d}).<BR>ok<BR>6> B=#a{}.<BR>#a{b = undefined,c = 
undefined,d = undefined}<BR>7> <BR>7> <BR>7> <BR>7> 
B#a.c.<BR>undefined<BR>8> <BR>8> record_info(fields,B).<BR>** 2: illegal 
record info **<BR>9> <BR>9> record_info(size, B).    <BR>** 
2: illegal record info **<BR>10> <BR>10> 
C=B#a{c=rtest}.      <BR>#a{b = undefined,c = rtest,d = 
undefined}<BR>11> <BR>11> 
B#a.c.                
<BR>undefined<BR>12> 
C#a.c.               
<BR>rtest<BR>13></FONT></DIV></BODY></HTML>