Re: [BLACKBOX] Possible compiler bug ?

From: Dr. Markus Bautsch <"Dr.>
Date: Sun, 18 Dec 2011 08:32:05 -0500


Dear Robert !

I am missing the creation of an instance of meter:

NEW (meter);
meter.maxVal = 1;

LONG (100) should be equal to 100L

Regards

Markus



-----Ursprüngliche Mitteilung-----
Von: Robert <robert.campbell_{([at]})nowhere.xy
An: BLACKBOX <BLACKBOX{([at]})nowhere.xy
Verschickt: So, 18 Dez 2011 5:34 am
Betreff: [BLACKBOX] Possible compiler bug ?


Hi



I can't compile the code below, which seems ok to me.



I don't get an error message, I get a compiler crash.



Am I overlooking something obvious?



Regards



Robert







MODULE DemoMeter;





TYPE

   Meter = POINTER TO RECORD

               maxVal : INTEGER;

              END;





PROCEDURE Do*;

   VAR

     pos, val : INTEGER;

     meter : Meter;

   BEGIN

      pos := SHORT (val * LONG (100) DIV meter.maxVal)

   END Do;





END DemoMeter.





----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to 
LISTSERV{([at]})nowhere.xy---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
Received on Sun Dec 18 2011 - 14:32:05 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:09 UTC