SDL-News: A strange question


Subject: SDL-News: A strange question
From: Zhang Yongqian (zhangyq#mail.ustc.edu.cn)
Date: Wed Oct 09 2002 - 03:44:09 GMT


ç(™æ§H2Å¢»¦J‡"zܦzfÞ®m§ÿðà •ú+ºj+ƒô¨r'­Ëùž™·«²fN¨®("�«h®‡í†+&zË�謭ë)¢{"nWŸ¢¸­±Ê'µéíº&f§�Š'‚¨šŸ8Zž ª™¨¥ºË\yÛœžÚ,vYÞHi Everybody,

    I encounter a strange question. My tool is TAU.

    In a simple case, I use a ASN.1 module in my SDL system.

    MyModule DEFINITIONS ::=
BEGIN
    Color ::= ENUMERATED { red(0), yellow(1), blue(2) }
END

Then I declare a NEWTYPE :

NEWTYPE ColorToString
    array ( Color, IA5String )
ENDNEWTYPE ;

And some variables
    
DCL
c Color ;

In the SDL GR, I write the following code in a task symble:
    c := First(red)

When I analyze the system, the following information is given by TAU:

+ Analysis started
Conversion of ASN.1, SDL to PR started
Conversion to PR completed
Syntactic analysis started
Syntactic analysis completed
Semantic analysis started

#SDTREF(SDL,D:\Telelogic\SDL_TTCN_Suite4.2\work\Formal_Integration\MyProc.spr(1),137(90,75),1)
1: ERROR 343 No matching field selection, array element access or prefix operator
First ?( red)


What's wrong with the operator? This is just a simple case in TAU help manual. I am mazed.



    
wm{_®‰™…©àb‰àª&§Î§ƒ*¦j)n²×vç'¶‹–w°ŠÞÆÚÚH2Å¢»¦J‡"zÜ›zwŸŠÛ#¢)Ú¶m§ÿðà •ú+ºj+ƒô¨r'­Ëùž™·«²f



This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:49 GMT