Oberon Community Platform Forum
November 23, 2017, 09:46:28 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: zc: unexpected error message with write  (Read 2013 times)
GLX
Newbie
*
Posts: 4


« on: September 09, 2009, 10:45:49 AM »

I know the write procedure is not the heart of the language, and there are lots of workarounds and also almost no one uses write but the following isn't really, what it should be.

zc Version 1.2.2.0

Think of any real-function like:
       F(x:<anytype>):real;

Then the statement 
      write(F(x):3:3);
results in an error message:   "...Extra width specifier for non-real argument" , which is wrong.

Working is of course
      var r : real;  r:=F(x); write(r:3:3)

and more interestingly
      write(real(F(x)):3:3)

Some reasons for that behavior come to my mind, but I think of it as being unexpected.

b.t.w.
Any info about the Zonnon-Builder not working on Vista(64) but perfectly on XP (see my other post) would be highly appreciated...
thx
Gerhard
 
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!