1. Win4Eu: need synonym for 'get'

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

new topic     » topic index » view message » categorize

2. Re: Win4Eu: need synonym for 'get'

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/

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

3. Re: Win4Eu: need synonym for 'get'

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

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

4. Re: Win4Eu: need synonym for 'get'

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

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

5. Re: Win4Eu: need synonym for 'get'

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

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

6. Re: Win4Eu: need synonym for 'get'

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/

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

7. Re: Win4Eu: need synonym for 'get'

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

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

8. Re: Win4Eu: need synonym for 'get'

obtain?


--"ask about our layaway plan".
--

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

9. Re: Win4Eu: need synonym for 'get'

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

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

10. Re: Win4Eu: need synonym for 'get'

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

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

11. Re: Win4Eu: need synonym for 'get'

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

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

12. Re: Win4Eu: need synonym for 'get'

> 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

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

13. Re: Win4Eu: need synonym for 'get'

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 blink
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

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

14. Re: Win4Eu: need synonym for 'get'

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

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

15. Re: Win4Eu: need synonym for 'get'

----- 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
> 
> 
> 
>

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

16. Re: Win4Eu: need synonym for 'get'

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/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu