[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

3968.0. "Error using negative subrange." by KETJE::PACCO (Gallia divisa est in partes tres) Mon Oct 26 1992 12:16

    	Hy,

    Are negative subrange allowed or not ?
    A sub-range with a negative value does not compile correctly.

    If I use the following DECmcc MANAGEMENT SPECIFICATION LANGUAGE source
    file:



   TYPE
      Xecho = 560 Integer32 [-1..255];


    The compilation gives the following errors:

$ man/tool/spec x
DECmcc Management Specification Language Translation Tool
               Version V1.2

%MCCMSL-I-MSLLOCATION, Line: 36, File: X.MS;,
%MCCMSL-E-UNEXPCHARACTER, Unexpected character "-", in input
%MCCMSL-I-MSLLOCATION, Line: 36, File: X.MS;,
%MCCMSL-E-PARSER, syntax error: The value "-" is not expected
%MCCMSL-E-ERROR, MSL did not complete successfully, please see previous error

    
    	Is there a solution ?
    	Dominique.
T.RTitleUserPersonal
Name
DateLines
3968.1MSL currently does NOT support negative subrangesTEMTY::L_GROSSMANTue Nov 03 1992 08:502
The subrange values are saved in 32 bits which would have to be expanded.
3968.2is subrange [4294967295..10] allowed ?KETJE::PACCOGallia divisa est in partes tresWed Nov 04 1992 04:437
    Does this mean that e.g. a subrange [4294967295..10] in fact means 
    	a subrange			[-1..10] for signed integers ?
    
    	Dominique.