1. Conflict Using EuSQL.e

Matt, this simple program:

include eusql.e

sequence new_db, old_db, sql, res

new_db = open_db("cklester.com/database/content.edb")
sql = "select * from posts"
res = run_sql(sql)
close_db(new_db)

pretty_print(res)


gives an error:

db_convert.exw:10
A namespace qualifier is needed to resolve pretty_print.
pretty_print is defined as a global symbol in:
    C:\EUPHORIA\include\misc.e
    c:\eu_include\matheval\matheval.e

pretty_print(res)
           ^
What do you think we should do to resolve that?

new topic     » topic index » view message » categorize

2. Re: Conflict Using EuSQL.e

c.k.lester wrote:
> 
> db_convert.exw:10
> A namespace qualifier is needed to resolve pretty_print.
> pretty_print is defined as a global symbol in:
>     C:\EUPHORIA\include\misc.e
>     c:\eu_include\matheval\matheval.e
> 
> pretty_print(res)
>            ^
> What do you think we should do to resolve that?

I think you should use a namespace qualifier:
include misc.e as misc

misc:pretty_print(res)

Matt

new topic     » goto parent     » topic index » view message » categorize

3. Re: Conflict Using EuSQL.e

Matt Lewis wrote:
> c.k.lester wrote:
> > db_convert.exw:10
> > A namespace qualifier is needed to resolve pretty_print.
> > pretty_print is defined as a global symbol in:
> >     C:\EUPHORIA\include\misc.e
> >     c:\eu_include\matheval\matheval.e
> > 
> > pretty_print(res)
> >            ^
> > What do you think we should do to resolve that?
> 
> I think you should use a namespace qualifier:
> 
> include misc.e as misc
> 
> misc:pretty_print(res)

I think you should rename the matheval.e pretty_print to set_pretty_print_id,
since that's what it does, right? Then there's no confusion or conflict. :)

Then it would be reasonable that I would have to include misc.e with my code
in order to get pretty_print().

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu