Re: Re: EPOM
Shinji Takasaka <[email protected]>
| Newsgroups | gmane.comp.lang.eiffel.gobo.general |
|---|---|
| Message-ID | <[email protected]> |
Now I've changed all "reference" attribute name to "referemce_1". The next
error msg I've got was:
-------------------------------------------------------------------------------
Error code: VUEX(2)
Error: feature of qualified call is not available to client class.
What to do: make sure feature after dot is exported to caller.
Class: COPY_ADAPTER_ACCESS_ROUTINES
Feature: do_copy_borrowed
Feature: is_error Class: COPY_BORROWED Version from: ECLI_STATUS
Not exported to class COPY_ADAPTER_ACCESS_ROUTINES
Line: 56
end
-> if cursor.is_error then
status.set_datastore_error (cursor.native_code, cursor.diagnostic_mess
age)
-------------------------------------------------------------------------------
Then I've added the feature "is_error" in ecli_query class as follow:
inherit
ECLI_STATEMENT
rename
start as statement_start
export
{NONE} all;
{ANY}
make, forth, close,
is_closed,is_ok, is_prepared, is_prepared_execution_mode, is_executed,
is_valid,
off, before, after, has_information_message, diagnostic_message, sql,
results,
go_after, array_routines, has_result_set, cursor_status, Cursor_after,
Cursor_before, Cursor_in,
has_parameters,execute, bind_parameters, put_parameter, prepare,
parameters_count, bound_parameters,
is_parsed, parameters, has_parameter, is_error
^^^^^^^^^^^
redefine
make
end
ANY
Then I've got the error msg:
-------------------------------------------------------------------------------
Error code: VUEX(2)
Error: feature of qualified call is not available to client class.
What to do: make sure feature after dot is exported to caller.
Class: COPY_ADAPTER_ACCESS_ROUTINES
Feature: do_copy_borrowed
Feature: native_code Class: COPY_BORROWED Version from: ECLI_STATUS
Not exported to class COPY_ADAPTER_ACCESS_ROUTINES
Line: 57
if cursor.is_error then
-> status.set_datastore_error (cursor.native_code, cursor.diagnostic_mess
age)
elseif cursor.is_ok and cursor.has_information_message then
-------------------------------------------------------------------------------
Then added the feature native_code to the ecli_query class as follow:
inherit
ECLI_STATEMENT
rename
start as statement_start
export
{NONE} all;
{ANY}
make, forth, close,
is_closed,is_ok, is_prepared, is_prepared_execution_mode, is_executed,
is_valid,
off, before, after, has_information_message, diagnostic_message, sql,
results,
go_after, array_routines, has_result_set, cursor_status, Cursor_after,
Cursor_before, Cursor_in,
has_parameters,execute, bind_parameters, put_parameter, prepare,
parameters_count, bound_parameters,
is_parsed, parameters, has_parameter, is_error, native_code
^^^^^^^^^^^^^^^^
redefine
make
end
ANY
Then the error msg I've got was:
-------------------------------------------------------------------------------
Error code: VUAR(2)
Type error: non-conforming actual argument in feature call.
What to do: make sure that type of actual argument conforms to type
of corresponding formal argument.
Class: PO_ADAPTER [G -> PO_PERSISTENT]
Feature: set_datastore
Called feature: has (v: G): BOOLEAN from DS_LINEAR
Argument name: v
Argument position: 1
Actual argument type: PO_ADAPTER [Generic #1]
Formal argument type: PO_ADAPTER [PO_PERSISTENT]
Line: 215
-> adapter_registered_to_datastore: datastore.adapters.has (Current)
end
-------------------------------------------------------------------------------
So, what should I do now?
Thanks for all your help.
Shinji
On 10/7/05, Eric Bezault <ericb-D6Qt/9opevxWk0Htik3J/[email protected]> wrote:
>
> Shinji Takasaka wrote:
> > Thanks again Paul,
> >
> > Following your instructions I successfully compiled ECLI and ran some
> tests
> > and it worked. But when I try to compile the book example from EPOM I
> got
> > this message:
> >
> >
> *****************************************************************************
> > [ 66% - 46] Degree 5 class BORROWER_ADAPTER
> > [ 66% - 45] Degree 5 class BORROWER_ADAPTER_ECLI
> >
> -------------------------------------------------------------------------------
> >
> > Syntax error at line 150 in class BORROWER_ADAPTER_ECLI
> >
> >
> > local
> > reference : PO_REFERENCE[BORROWER]
> > ------------^
> > do
> >
> >
> -------------------------------------------------------------------------------
> >
> *****************************************************************************
>
> It's because 'reference' is now a keyword. You should
> try to give another name to the local variable.
>
> --
> Eric Bezault
> mailto:ericb-D6Qt/9opevxWk0Htik3J/[email protected]
> http://www.gobosoft.com
>
>
>
> To Post a message, send it to: [email protected]
> To Unsubscribe, send a blank message to:
> [email protected]
>
>
> ------------------------------
> YAHOO! GROUPS LINKS
>
>
> - Visit your group "gobo-eiffel<http://groups.yahoo.com/group/gobo-eiffel>"
> on the web.
> - To unsubscribe from this group, send an email to:
> [email protected]<[email protected]?subject=Unsubscribe>
> - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------
>
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
To Post a message, send it to: [email protected]
To Unsubscribe, send a blank message to: [email protected]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/gobo-eiffel/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/