entity ch_18_10 is end entity ch_18_10; ---------------------------------------------------------------- architecture test of ch_18_10 is begin process is use std.textio.all; variable L : line; -- code from book: type speed_category is (stopped, slow, fast, maniacal); variable speed : speed_category; -- end of code from book begin speed := stopped; -- code from book: write ( L, speed_category'image(speed) ); -- end of code from book writeline(output, L); speed := slow; write ( L, speed_category'image(speed) ); writeline(output, L); speed := fast; write ( L, speed_category'image(speed) ); writeline(output, L); speed := maniacal; write ( L, speed_category'image(speed) ); writeline(output, L); -- code from book: readline( input, L ); speed := speed_category'value(L.all); -- end of code from book wait; end process; end architecture test; <div align="center"><br /><script type="text/javascript"><!-- google_ad_client = "pub-7293844627074885"; //468x60, Created at 07. 11. 25 google_ad_slot = "8619794253"; google_ad_width = 468; google_ad_height = 60; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script><br /> </div>