1. Conflict Using EuSQL.e
- Posted by c.k.lester <euphoric at c?lest?r.com> Apr 17, 2008
- 608 views
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?
2. Re: Conflict Using EuSQL.e
- Posted by Matt Lewis <matthewwalkerlewis at gmai?.?om> Apr 17, 2008
- 571 views
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
3. Re: Conflict Using EuSQL.e
- Posted by c.k.lester <euphoric at ?kle?ter.com> Apr 17, 2008
- 590 views
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().