Problem with project settings (maybe)

6 messages Options
Embed this post
Permalink
Chris Saunders-4

Problem with project settings (maybe)

Reply Threaded More More options
Print post
Permalink
Here are some of the project settings:

$ISE_LIBRARY\library\base\base-safe.ecf
$ISE_LIBRARY\library\thread\thread-safe.ecf
$ISE_LIBRARY\library\vision2\vision2-safe.ecf
Are types attached by default?: True
Void safety: Complete void safety
Syntax: Standard syntax

I think these are all the appropriate ones.
Without adding any of my own code I get this error:

VDRD(2): Redeclaration has non-conforming signature.
This error is from class WEL_WINDOW and when I double click on the error it brings me to this line "parent: detachable WEL_WINDOW" which is line 102 in the class text.  I'm suspicious of my project settings as I have found before that this was the source of the problem but I cannot see a problem with the settings this time.  I am not using any precompiled headers.  Any help?

Regards
Chris Saunders


[Non-text portions of this message have been removed]

Emmanuel Stapf

RE: Problem with project settings (maybe)

Reply Threaded More More options
Print post
Permalink
Because they were some breaking changes in our libraries for having a void-safety,
we have 2 versions of the libraries in the 6.4 deliveries. By default, the
libraries we ship in 6.4 are compatible with 6.3 and do not include all void-safe
libraries. To use void-safe versions of our libraries, you have to use the
experimental version by launching estudio or ec with the `-experiment' option, or
via the Start menu on Windows.

Hope this helps,
Manu

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Chris Saunders
> Sent: Sunday, July 05, 2009 9:31 PM
> To: Eiffel Software
> Subject: [eiffel_software] Problem with project settings (maybe)
>
> Here are some of the project settings:
>
> $ISE_LIBRARY\library\base\base-safe.ecf
> $ISE_LIBRARY\library\thread\thread-safe.ecf
> $ISE_LIBRARY\library\vision2\vision2-safe.ecf
> Are types attached by default?: True
> Void safety: Complete void safety
> Syntax: Standard syntax
>
> I think these are all the appropriate ones.
> Without adding any of my own code I get this error:
>
> VDRD(2): Redeclaration has non-conforming signature.
> This error is from class WEL_WINDOW and when I double click on the error
> it brings me to this line "parent: detachable WEL_WINDOW" which is line
> 102 in the class text.  I'm suspicious of my project settings as I have
> found before that this was the source of the problem but I cannot see a
> problem with the settings this time.  I am not using any precompiled
> headers.  Any help?
>
> Regards
> Chris Saunders
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

------------------------------------------------------------------------  
Eiffel Software
805-685-1006
http://www.eiffel.com       
Customer support: http://support.eiffel.com       
User group: http://groups.eiffel.com/join       
------------------------------------------------------------------------  
Chris Saunders-4

Re: Problem with project settings (maybe)

Reply Threaded More More options
Print post
Permalink
Thanks Manu.  I've been using the desktop shortcuts that are installed by EiffelStudio for ages and have never seen before these alternatives from the start menu.  I ran the experimental version after deleting the EIFGEN directory and am getting many errors.  Here is the first:

  Error code: VEVI

Error: variable is not properly set.
What to do: ensure the variable is properly set by the corresponding
  setter instruction.

Class: FRACTAL_APPLICATION
Source class: EV_ANY
Feature: default_create
Creation procedure: make_and_launch declared in FRACTAL_APPLICATION
Attribute: main_window: MAIN_WINDOW from FRACTAL_APPLICATION
Line: 63
        implementation.set_state_flag ({EV_ANY_I}.interface_default_create_called_flag, True)
->      implementation.assign_interface (Current)
        initialize  

Regards
Chris Saunders


From: Emmanuel Stapf [ES]
Sent: Monday, July 06, 2009 12:20 PM
To: [hidden email]
Subject: RE: [eiffel_software] Problem with project settings (maybe)





Because they were some breaking changes in our libraries for having a void-safety,
we have 2 versions of the libraries in the 6.4 deliveries. By default, the
libraries we ship in 6.4 are compatible with 6.3 and do not include all void-safe
libraries. To use void-safe versions of our libraries, you have to use the
experimental version by launching estudio or ec with the `-experiment' option, or
via the Start menu on Windows.

Hope this helps,
Manu

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Chris Saunders
> Sent: Sunday, July 05, 2009 9:31 PM
> To: Eiffel Software
> Subject: [eiffel_software] Problem with project settings (maybe)
>
> Here are some of the project settings:
>
> $ISE_LIBRARY\library\base\base-safe.ecf
> $ISE_LIBRARY\library\thread\thread-safe.ecf
> $ISE_LIBRARY\library\vision2\vision2-safe.ecf
> Are types attached by default?: True
> Void safety: Complete void safety
> Syntax: Standard syntax
>
> I think these are all the appropriate ones.
> Without adding any of my own code I get this error:
>
> VDRD(2): Redeclaration has non-conforming signature.
> This error is from class WEL_WINDOW and when I double click on the error
> it brings me to this line "parent: detachable WEL_WINDOW" which is line
> 102 in the class text. I'm suspicious of my project settings as I have
> found before that this was the source of the problem but I cannot see a
> problem with the settings this time. I am not using any precompiled
> headers. Any help?
>
> Regards
> Chris Saunders
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>





[Non-text portions of this message have been removed]

Emmanuel Stapf

RE: Problem with project settings (maybe)

Reply Threaded More More options
Print post
Permalink
This is a typical void-safety issue. Your attribute `main_window' cannot be proved
to be created at the end of your creation procedure. Make sure that your
attributes are set before calling `default_create' inherited from EV_APPLICATION
and in vision2, you simply have to redefine `create_interface_objects' which is
called by `default_create'.

Hope this helps,
Manu

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Chris Saunders
> Sent: Monday, July 06, 2009 10:35 AM
> To: [hidden email]
> Subject: Re: [eiffel_software] Problem with project settings (maybe)
>
> Thanks Manu.  I've been using the desktop shortcuts that are installed by
> EiffelStudio for ages and have never seen before these alternatives from
> the start menu.  I ran the experimental version after deleting the EIFGEN
> directory and am getting many errors.  Here is the first:
>
>   Error code: VEVI
>
> Error: variable is not properly set.
> What to do: ensure the variable is properly set by the corresponding
>   setter instruction.
>
> Class: FRACTAL_APPLICATION
> Source class: EV_ANY
> Feature: default_create
> Creation procedure: make_and_launch declared in FRACTAL_APPLICATION
> Attribute: main_window: MAIN_WINDOW from FRACTAL_APPLICATION
> Line: 63
>         implementation.set_state_flag
> ({EV_ANY_I}.interface_default_create_called_flag, True)
> ->      implementation.assign_interface (Current)
>         initialize
>
> Regards
> Chris Saunders
>
>
> From: Emmanuel Stapf [ES]
> Sent: Monday, July 06, 2009 12:20 PM
> To: [hidden email]
> Subject: RE: [eiffel_software] Problem with project settings (maybe)
>
>
>
>
>
> Because they were some breaking changes in our libraries for having a
> void-safety,
> we have 2 versions of the libraries in the 6.4 deliveries. By default,
> the
> libraries we ship in 6.4 are compatible with 6.3 and do not include all
> void-safe
> libraries. To use void-safe versions of our libraries, you have to use
> the
> experimental version by launching estudio or ec with the `-experiment'
> option, or
> via the Start menu on Windows.
>
> Hope this helps,
> Manu
>
> > -----Original Message-----
> > From: [hidden email]
> > [mailto:[hidden email]] On Behalf Of Chris Saunders
> > Sent: Sunday, July 05, 2009 9:31 PM
> > To: Eiffel Software
> > Subject: [eiffel_software] Problem with project settings (maybe)
> >
> > Here are some of the project settings:
> >
> > $ISE_LIBRARY\library\base\base-safe.ecf
> > $ISE_LIBRARY\library\thread\thread-safe.ecf
> > $ISE_LIBRARY\library\vision2\vision2-safe.ecf
> > Are types attached by default?: True
> > Void safety: Complete void safety
> > Syntax: Standard syntax
> >
> > I think these are all the appropriate ones.
> > Without adding any of my own code I get this error:
> >
> > VDRD(2): Redeclaration has non-conforming signature.
> > This error is from class WEL_WINDOW and when I double click on the
> error
> > it brings me to this line "parent: detachable WEL_WINDOW" which is line
> > 102 in the class text. I'm suspicious of my project settings as I have
> > found before that this was the source of the problem but I cannot see a
> > problem with the settings this time. I am not using any precompiled
> > headers. Any help?
> >
> > Regards
> > Chris Saunders
> >
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

------------------------------------------------------------------------  
Eiffel Software
805-685-1006
http://www.eiffel.com       
Customer support: http://support.eiffel.com       
User group: http://groups.eiffel.com/join       
------------------------------------------------------------------------  
Jann Röder

Numeric literals and NATURAL

Reply Threaded More More options
Print post
Permalink
In reply to this post by Emmanuel Stapf
Hi,
I was wondering why code like this requires explicit conversion to natural:

lets say my function has this siganture: my_feature (a_value: NATURAL_32)

and I call the feature like this: my_feature (2*1024*1024)

Currently the eiffel compiler gives me a compiler error because it
interprets the argument as INTEGER. Why does it not automatically
convert to NATURAL_32 ?

my_feature ((2*1024*1024).as_natural_32) seems a bit superfluous.

Jann
Emmanuel Stapf

RE: Numeric literals and NATURAL

Reply Threaded More More options
Print post
Permalink
> Currently the eiffel compiler gives me a compiler error because it
> interprets the argument as INTEGER. Why does it not automatically
> convert to NATURAL_32 ?

Because it is an expression and not a constant. The type of the expression `2 * 1024 * 1024' is of type INTEGER and the compiler does not go further trying to evaluate the value of the expression to see if it would fit into a NATURAL_32.

Regards,
Manu

------------------------------------------------------------------------  
Eiffel Software
805-685-1006
http://www.eiffel.com       
Customer support: http://support.eiffel.com       
User group: http://groups.eiffel.com/join       
------------------------------------------------------------------------