1. Win4Eu: need synonym for 'get'
- Posted by Tommy Carlier <tommy.carlier at telenet.be> Sep 24, 2004
- 528 views
I'm looking for a (short) synonym for 'get', used as a function-name. In Win4Eu, you will be able to set properties of controls with the 'set'-procedure, like this:
win = create(Window, "win", {}) set(win, "Text", "Title of the window")
Now I need to find a function-name to get the value of a property. I'd like to use 'get', like this:
size = get(win, "Size")
But, there already is a get-function in the standard library 'get.e'. So I need a synonym. I was thinking of 'take' or 'grab', but perhaps you guys (and girls) can find something better? -- tommy online: http://users.telenet.be/tommycarlier tommy.blog: http://tommycarlier.blogspot.com Euphoria Message Board: http://uboard.proboards32.com
2. Re: Win4Eu: need synonym for 'get'
- Posted by cklester <cklester at yahoo.com> Sep 24, 2004
- 521 views
Tommy Carlier wrote: > > I'm looking for a (short) synonym for 'get', used as a function-name. How about getW() or getw(), or some other getX(). The 'w' defines it as a Win32Eu function. acc() -- access properties obt() -- obtain properties grab, fetch, ... I would probably prefer getw() or getp() ("get property"). Easy to remember and type. :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
3. Re: Win4Eu: need synonym for 'get'
- Posted by Tommy Carlier <tommy.carlier at telenet.be> Sep 24, 2004
- 517 views
cklester wrote: > Tommy Carlier wrote: > > I'm looking for a (short) synonym for 'get', used as a function-name. > How about getW() or getw(), or some other getX(). The 'w' defines it as > a Win32Eu function. > > acc() -- access properties > obt() -- obtain properties > grab, fetch, ... > > I would probably prefer getw() or getp() ("get property"). Easy to > remember and type. :) I would prefer to use full words, and not abbreviations. I want the library to have a consistent look, without prefixes, postfixes or abbreviations. The programmers that use Win4Eu should not have to doubt about what he/she has to type. Most of the interfacing with the object-system will happen via simple verbs: create, destroy, set, ?get?, add, remove, load, save, ... -- tommy online: http://users.telenet.be/tommycarlier tommy.blog: http://tommycarlier.blogspot.com Euphoria Message Board: http://uboard.proboards32.com
4. Re: Win4Eu: need synonym for 'get'
- Posted by cklester <cklester at yahoo.com> Sep 24, 2004
- 508 views
Tommy Carlier wrote: > > cklester wrote: > > Tommy Carlier wrote: > > > I'm looking for a (short) synonym for 'get', used as a function-name. > > I would probably prefer getw() or getp() ("get property"). Easy to > > remember and type. :) > > I would prefer to use full words, and not abbreviations. Well, for purposes of working with Win4Eu, maybe you could reassign Euphoria's get() to get_object() (which is what it does), and intercept get() for your own use... For EuGTK, Irv uses gtkSet() and gtkGet(), which aren't too unwieldy. Otherwise, it doesn't look like there are any suitable (short*) synonyms. -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/ *short = 3 letters or less
5. Re: Win4Eu: need synonym for 'get'
- Posted by Tommy Carlier <tommy.carlier at telenet.be> Sep 24, 2004
- 519 views
cklester wrote: > Otherwise, it doesn't look like there are any suitable (short*) synonyms. With short, I don't mean 3 or 4 letters. I actually like your suggestions 'obtain' and 'fetch'. With short, I mean between 3 and 6, maybe even a bit longer, if it's a good word. -- tommy online: http://users.telenet.be/tommycarlier tommy.blog: http://tommycarlier.blogspot.com Euphoria Message Board: http://uboard.proboards32.com
6. Re: Win4Eu: need synonym for 'get'
- Posted by cklester <cklester at yahoo.com> Sep 24, 2004
- 514 views
Tommy Carlier wrote: > > cklester wrote: > > Otherwise, it doesn't look like there are any suitable (short*) synonyms. > > With short, I don't mean 3 or 4 letters. I actually like your suggestions > 'obtain' and 'fetch'. With short, I mean between 3 and 6, maybe even a bit > longer, if it's a good word. Oh. Well, it doesn't really matter to me, because I'm just going to wrap your access/obtain/fetch/retrieve/get_properties function into a getp() function. :P -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
7. Re: Win4Eu: need synonym for 'get'
- Posted by "Kat" <gertie at visionsix.com> Sep 24, 2004
- 522 views
On 24 Sep 2004, at 10:28, Tommy Carlier wrote: > > > posted by: Tommy Carlier <tommy.carlier at telenet.be> > > I'm looking for a (short) synonym for 'get', used as a function-name. > In Win4Eu, you will be able to set properties of controls with the > 'set'-procedure, like this: > }}} <eucode> > win = create(Window, "win", {}) > set(win, "Text", "Title of the window") > </eucode> {{{ > Now I need to find a function-name to get the value of a property. > I'd like to use 'get', like this: > }}} <eucode> > size = get(win, "Size") > </eucode> {{{ > But, there already is a get-function in the standard library 'get.e'. > So I need a synonym. I was thinking of 'take' or 'grab', but perhaps > you guys (and girls) can find something better? I use getf() for get-file, and getw() for get-web, perhaps you can use getp() for get-properties? Or getpx(), getpy(), getpz() ? Kat
8. Re: Win4Eu: need synonym for 'get'
- Posted by Michael Raley <thinkways at yahoo.com> Sep 24, 2004
- 498 views
obtain? --"ask about our layaway plan". --
9. Re: Win4Eu: need synonym for 'get'
- Posted by irv mullins <irvm at ellijay.com> Sep 24, 2004
- 520 views
cklester wrote: > > Tommy Carlier wrote: > > > > cklester wrote: > > > Tommy Carlier wrote: > > > > I'm looking for a (short) synonym for 'get', used as a function-name. > > > I would probably prefer getw() or getp() ("get property"). Easy to > > > remember and type. :) > > > > I would prefer to use full words, and not abbreviations. > > Well, for purposes of working with Win4Eu, maybe you could reassign > Euphoria's get() to get_object() (which is what it does), and intercept > get() for your own use... > > For EuGTK, Irv uses gtkSet() and gtkGet(), which aren't too unwieldy. I originally reassigned the built-in get() as eu_get(), then realized it would cause problems when people read the Euphoria docs and tried to use get() as written there. I could have used Get() and Set(), but that also has the potential to mislead. That left gtkGet() and gtkSet() which at least doesn't rule out someone writing other _gets and _sets for their own purposes. Irv
10. Re: Win4Eu: need synonym for 'get'
- Posted by "Igor Kachan" <kinz at peterlink.ru> Sep 24, 2004
- 512 views
Hi, Tommy! > I'm looking for a (short) synonym for 'get', used as a function-name. > In Win4Eu, you will be able to set properties of controls with the > 'set'-procedure, like this: > }}} <eucode> > win = create(Window, "win", {}) > set(win, "Text", "Title of the window") > </eucode> {{{ > Now I need to find a function-name to get the value of a property. > I'd like to use 'get', like this: > }}} <eucode> > size = get(win, "Size") > </eucode> {{{ > But, there already is a get-function in the standard library 'get.e'. > So I need a synonym. I was thinking of 'take' or 'grab', but perhaps > you guys (and girls) can find something better? 'Ask' or 'ask' are good and short words, on my taste. Regards, Igor Kachan kinz at peterlink.ru
11. Re: Win4Eu: need synonym for 'get'
- Posted by Marc Giao <giao at sympatico.ca> Sep 24, 2004
- 506 views
Tommy Carlier wrote: > > I'm looking for a (short) synonym for 'get', used as a function-name. > In Win4Eu, you will be able to set properties of controls with the > 'set'-procedure, like this: > }}} <eucode> > win = create(Window, "win", {}) > set(win, "Text", "Title of the window") > </eucode> {{{ > Now I need to find a function-name to get the value of a property. > I'd like to use 'get', like this: > }}} <eucode> > size = get(win, "Size") > </eucode> {{{ > But, there already is a get-function in the standard library 'get.e'. > So I need a synonym. I was thinking of 'take' or 'grab', but perhaps > you guys (and girls) can find something better? > > -- > tommy online: <a > href="http://users.telenet.be/tommycarlier">http://users.telenet.be/tommycarlier</a> > tommy.blog: <a > href="http://tommycarlier.blogspot.com">http://tommycarlier.blogspot.com</a> > Euphoria Message Board: <a > href="http://uboard.proboards32.com">http://uboard.proboards32.com</a> > How about: Insert/Apply/Affix/Adjoin properties Delete/Erase/Cancel properties Query/Obtain properties Marc
12. Re: Win4Eu: need synonym for 'get'
- Posted by Don <eunexus at yahoo.com> Sep 24, 2004
- 513 views
- Last edited Sep 25, 2004
> I'm looking for a (short) synonym for 'get', used as a function-name. > In Win4Eu, you will be able to set properties of controls with the > 'set'-procedure, like this: > }}} <eucode> > win = create(Window, "win", {}) > set(win, "Text", "Title of the window") > </eucode> {{{ > Now I need to find a function-name to get the value of a property. > I'd like to use 'get', like this: > }}} <eucode> > size = get(win, "Size") > </eucode> {{{ > But, there already is a get-function in the standard library 'get.e'. > So I need a synonym. I was thinking of 'take' or 'grab', but perhaps > you guys (and girls) can find something better? I personally like push and pull. I think these are short enough and to the point... same as set / get respectively. Don Phillips - aka Graebel National Instruments mailto: eunexus @ yahoo.com
13. Re: Win4Eu: need synonym for 'get'
- Posted by Tommy Carlier <tommy.carlier at telenet.be> Sep 24, 2004
- 519 views
- Last edited Sep 25, 2004
Igor Kachan wrote: > 'Ask' or 'ask' are good and short words, on my taste. I think 'ask' is the shortest alternative for 'get'. It's not really a synonym, but it describes the function better than 'obtain' or 'fetch'. You ask an object for the value of one of his properties. Produces very polite code
constant win = create(Window, "win", {}) set(win, "Size", {300, 200}) integer width width = ask(win, "Width")
I think it's ironic that the best English alternative was found by a Russian guy. Thanks! -- tommy online: http://users.telenet.be/tommycarlier tommy.blog: http://tommycarlier.blogspot.com Euphoria Message Board: http://uboard.proboards32.com
14. Re: Win4Eu: need synonym for 'get'
- Posted by Tommy Carlier <tommy.carlier at telenet.be> Sep 24, 2004
- 500 views
- Last edited Sep 25, 2004
I've uploaded a PDF-document (1 page, about 92kB) with some more information about the architecture and ideas of Win4Eu: http://users.telenet.be/tommycarlier/extra/win4eu.pdf -- tommy online: http://users.telenet.be/tommycarlier tommy.blog: http://tommycarlier.blogspot.com Euphoria Message Board: http://uboard.proboards32.com
15. Re: Win4Eu: need synonym for 'get'
- Posted by "William Heimbigner" <icxcnika at hotpop.com> Sep 24, 2004
- 534 views
- Last edited Sep 25, 2004
----- Original Message ----- From: "Don" <guest at RapidEuphoria.com> To: <EUforum at topica.com> Sent: Friday, September 24, 2004 3:20 PM Subject: Re: Win4Eu: need synonym for 'get' > > > posted by: Don <eunexus at yahoo.com> > > > I'm looking for a (short) synonym for 'get', used as a function-name. > > In Win4Eu, you will be able to set properties of controls with the > > 'set'-procedure, like this: > > }}} <eucode> > > win = create(Window, "win", {}) > > set(win, "Text", "Title of the window") > > </eucode> {{{ > > Now I need to find a function-name to get the value of a property. > > I'd like to use 'get', like this: > > }}} <eucode> > > size = get(win, "Size") > > </eucode> {{{ > > But, there already is a get-function in the standard library 'get.e'. > > So I need a synonym. I was thinking of 'take' or 'grab', but perhaps > > you guys (and girls) can find something better? > > I personally like push and pull. I think these are short enough > and to the point... same as set / get respectively. > Well since Euphoria should be simple, why don't we have push and pop? > > Don Phillips - aka Graebel > National Instruments > mailto: eunexus @ yahoo.com > > > >
16. Re: Win4Eu: need synonym for 'get'
- Posted by cklester <cklester at yahoo.com> Sep 24, 2004
- 525 views
- Last edited Sep 25, 2004
Tommy Carlier wrote: > > I think it's ironic that the best English alternative was found by > a Russian guy. That's your opinion. :P -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/