[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

3348.0. "Negative numbers in MS file" by MSBCS::DOLAN () Mon Jul 13 1992 18:17

I am trying to use a range that includes negative numbers eg.
TYPE MyRange = 1000 Integer8[-5..10].  MSL keeps complaining that the '-'
character is unacceptable ('unexpected' is actually the word used in the
error message).  I also cannot specify a negative default value in my
ms file. I get the same error message.  Suggestions?

			lynn dolan
T.RTitleUserPersonal
Name
DateLines
3348.1Currently no INTEGER32 support (workaround specified)TOOK::L_GROSSMANTue Jul 14 1992 08:1710
Unfortunately the MSL compiler does not support negative numbers.  This
functionality will hopefully be added in some future release.

You can however specify any unsigned integer that can be saved in
32 bits.  In this way you could refer to -5 as FFFFFFFB for the
datatype Integer32.  The range values are saved in an Unsigned 32 bit
value but its up to the user that read the dictionary on how to interpret
the returned value.

3348.2QAR #3280 in MCC_INTERNALTOOK::MCPHERSONLife is hard. Play short.Tue Jul 14 1992 18:260