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: Eiffel can'...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 860 of 917
Post > Topic >>

Re: Eiffel can't generate ANSI C

by Georg Bauhaus <bauhaus@[EMAIL PROTECTED] > Apr 7, 2007 at 01:39 PM

On Fri, 2007-04-06 at 19:14 -0700, llothar wrote:
> I'm currently hacking on the Smalleiffel compiler to generate warning
> free and valid C code and found that it is impossible to generate
> valid ANSI C with Eiffel.
> 
> The problem is that in ANSI C you can't cast from functions to data
> pointers, but we only have one '$' address of operator and one
> 'POINTER'.
> 
> I solved this with creating a new basic type FPOINTER and patching the
> address of operator ...

So it is a matter of how to implement the semantics of $
based on the type of the thing to be passed/translated?

> Don't know why i'm writting this in a dead newsgroup, but maybe
> somebody like to know about this language error.


FWIW, ECMA Eiffel also mentions a generic TYPED_POINTER[T]
being the type of address expression $v, where v is of type T.
(8.28.17)




 6 Posts in Topic:
Eiffel can't generate ANSI C
"llothar" <l  2007-04-06 19:14:23 
Re: Eiffel can't generate ANSI C
Georg Bauhaus <bauhaus  2007-04-07 13:39:31 
Re: Eiffel can't generate ANSI C
"llothar" <l  2007-04-07 23:19:01 
Re: Eiffel can't generate ANSI C
Ulrich Windl <Ulrich.W  2007-04-12 12:55:54 
Re: Eiffel can't generate ANSI C
"Bernd Schoeller&quo  2007-04-09 14:55:53 
Re: Eiffel can't generate ANSI C
Ulrich Windl <Ulrich.W  2007-04-12 12:53:42 

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 5:53:19 CDT 2008.