BOZ literal constants

Feng Wang wf_cs@yahoo.com
Tue Feb 1 09:59:00 GMT 2005


 --- Steve Kargl <sgk@troutmask.apl.washington.edu> µÄÕýÎÄ£º
> Gang,
> 
> I've never used BOZ literal constants in my code,
> so I'm unsure of validate forms for these.  Could
> someone send me an example of a BOZ literal constant
> that includes and excludes the use of kind type 
> parameters.
> 
BOZ literal constants have no intrinsic data type and assume a data type
depending on their use. IIRC, they cannot use kind parameter directly.
For example:
integer (kind = 4) :: i
real (kind = 8) :: r
i = b'11' ! This constant's data type is integer (4)
r = b'11' ! This constant's data type is real (8)


Best Regards,
Feng Wang



_________________________________________________________
Do You Yahoo!?
150ÍòÇúMP3·è¿ñËÑ£¬´øÄú´³ÈëÒôÀÖµîÌÃ
http://music.yisou.com/
ÃÀÅ®Ã÷ÐÇÓ¦Óо¡ÓУ¬ËѱéÃÀͼ¡¢ÑÞͼºÍ¿áͼ
http://image.yisou.com
1G¾ÍÊÇ1000Õ×£¬ÑÅ»¢µçÓÊ×ÔÖúÀ©ÈÝ£¡
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/



More information about the Fortran mailing list