Re: [Factor-talk] unless-global-var

2017-08-23 Thread Alexander Ilin
Actually, a better name might be `do-once`, or `with-guard-var`, or similar.

23.08.2017, 13:30, "Alexander Ilin" :
> Hello!
>
>   I think I came up with a useful word. Don't we already have something of 
> this nature?
>
> : unless-global-var ( guard-variable quot -- )
> dupd '[ t _ set-global @ ] [ get-global ] dip unless ; inline
>
> ---=---
>  Александр
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk

---=--- 
 Александр

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


[Factor-talk] unless-global-var

2017-08-23 Thread Alexander Ilin
Hello!

  I think I came up with a useful word. Don't we already have something of this 
nature?

: unless-global-var ( guard-variable quot -- )
dupd '[ t _ set-global @ ] [ get-global ] dip unless ; inline


---=--- 
 Александр

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk