Re: EuGTK - get vs get conflict
- Posted by mattlewis (admin) Sep 16, 2010
- 946 views
Jerry_Story said...
What is the best way to handle this conflict?
A namespace qualifier is needed to resolve 'get'because 'get' is declared as a global/public symbol in: ./GtkEngine.e /usr/share/euphoria/include/std/get.e filename = get(dlgSaveDiet,"filename")
As the message suggests....qualify the use of get() with a namespace.
I assume that you're trying to use the get() defined in EuGTK. If EuGTK defines a default namespace, then you could use that. Otherwise, you'll need to do something like:
include eugtk.e as gtk ... filename = gtk:get(dlgSaveDiet,"filename")
A default namespace is declared at the top of a file. It must be the first non-comment euphoria statement:
-- file foo.e namespace foo
That allows users to use the foo namespace qualifier without needing to specify their own. The standard library does this. For get.e, the namespace is stdget.
Matt