Paste: thread safe singleton?

Author: Brennan Cheung
Mode: factor
Date: Fri, 9 Dec 2011 16:28:39
Plain Text |
! Is there a better way to do this?

SYMBOL: fcgi-params
: get-fcgi-params ( -- params )
    fcgi-params tget dup 
    [   
        drop H{ } fcgi-params tset
        fcgi-params tget
    ] unless ;

New Annotation

Summary:
Author:
Mode:
Body: