Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Eiffel > Re: compilation...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 889 of 917
Post > Topic >>

Re: compilation error

by J <jocelyn-fake-email@[EMAIL PROTECTED] > Oct 18, 2007 at 02:52 PM

As the compiler says the error is on

   io.put_integer (v)

in MY_TREE, `v' is of type G  (which must conform to COMPARABLE)
However, put_integer accepts only INTEGER values.
What you are trying to do is

   io.put_integer (a_comparable_value)

What you might do is

   io.put_string (v.out)

For an INTEGER value, v.out will do what you wanted.
But this might not be the case for any object conforming to COMPARABLE.


Hope this helps,
-- Jocelyn.




 5 Posts in Topic:
compilation error
=?ISO-8859-1?Q?Roman_T=F6  2007-10-18 11:32:28 
Re: compilation error
Friedrich Dominicus <j  2007-10-18 12:36:40 
Re: compilation error
=?ISO-8859-15?Q?Roman_T=F  2007-10-18 13:34:14 
Re: compilation error
J <jocelyn-fake-email@  2007-10-18 14:52:01 
Re: compilation error
Friedrich Dominicus <j  2007-10-18 15:01:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 3:55:38 CDT 2008.