[Pharo-project] Underscores in Tables
Sorry for bothering you, how do I use Symbols with Underscores. I have a database which uses _ as word seperator and so I got names like foo_bar. Now if I access the dictionary with dict at: #foo_bar I get an error message (nothing more epected) What am I supposed to do to use such Symbols with _ in it? Thanks Friedrich -- Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus
On Jun 29, 2011, at 1:44 04PM, Friedrich Dominicus wrote:
Sorry for bothering you, how do I use Symbols with Underscores. I have a database which uses _ as word seperator and so I got names like foo_bar. Now if I access the dictionary with dict at: #foo_bar
I get an error message (nothing more epected)
What am I supposed to do to use such Symbols with _ in it?
Thanks Friedrich
Enclose the name in quotes: #'foo_bar' Cheers, Henry
My guess is that you have the Allow underscore assignment preference enabled. If you turn that off, you probably won't need the quotes. Bill ________________________________________ From: pharo-project-bounces@lists.gforge.inria.fr [pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Henrik Johansen [henrik.s.johansen@veloxit.no] Sent: Wednesday, June 29, 2011 7:57 AM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Underscores in Tables On Jun 29, 2011, at 1:44 04PM, Friedrich Dominicus wrote:
Sorry for bothering you, how do I use Symbols with Underscores. I have a database which uses _ as word seperator and so I got names like foo_bar. Now if I access the dictionary with dict at: #foo_bar
I get an error message (nothing more epected)
What am I supposed to do to use such Symbols with _ in it?
Thanks Friedrich
Enclose the name in quotes: #'foo_bar' Cheers, Henry
participants (3)
-
Friedrich Dominicus -
Henrik Johansen -
Schwab,Wilhelm K