factor: SYMBOL: foo foo [ bar ] initialize -> INITIALIZED-SYMBOL: foo [ bar ]

modern-harvey3-triple
Doug Coleman 2018-08-04 21:53:05 -04:00
parent 8bb69eadf9
commit 00fb574a8d
68 changed files with 144 additions and 268 deletions

View File

@ -4,9 +4,7 @@ USING: assocs cocoa.messages compiler.units core-foundation.bundles
hashtables init io kernel lexer namespaces sequences vocabs ; hashtables init io kernel lexer namespaces sequences vocabs ;
IN: cocoa IN: cocoa
SYMBOL: sent-messages INITIALIZED-SYMBOL: sent-messages [ H{ } clone ]
sent-messages [ H{ } clone ] initialize
: remember-send ( selector -- ) : remember-send ( selector -- )
dup sent-messages get set-at ; dup sent-messages get set-at ;
@ -25,9 +23,7 @@ SYNTAX: \selector:
[ remember-send ] [ remember-send ]
[ <selector> suffix! \ cocoa.messages:selector suffix! ] bi ; [ <selector> suffix! \ cocoa.messages:selector suffix! ] bi ;
SYMBOL: super-sent-messages INITIALIZED-SYMBOL: super-sent-messages [ H{ } clone ]
super-sent-messages [ H{ } clone ] initialize
: remember-super-send ( selector -- ) : remember-super-send ( selector -- )
dup super-sent-messages get set-at ; dup super-sent-messages get set-at ;
@ -35,9 +31,8 @@ super-sent-messages [ H{ } clone ] initialize
SYNTAX: \super: SYNTAX: \super:
scan-token unescape-token dup remember-super-send scan-token unescape-token dup remember-super-send
[ lookup-method suffix! ] [ suffix! ] bi \ super-send suffix! ; [ lookup-method suffix! ] [ suffix! ] bi \ super-send suffix! ;
SYMBOL: frameworks
frameworks [ V{ } clone ] initialize INITIALIZED-SYMBOL: frameworks [ V{ } clone ]
[ frameworks get [ load-framework ] each ] "cocoa" add-startup-hook [ frameworks get [ load-framework ] each ] "cocoa" add-startup-hook

View File

@ -24,11 +24,8 @@ SPECIALIZED-ARRAY: void*
over first large-struct? [ "_stret" append ] when over first large-struct? [ "_stret" append ] when
make-sender dup infer define-declared ; make-sender dup infer define-declared ;
SYMBOL: message-senders INITIALIZED-SYMBOL: message-senders [ H{ } clone ]
SYMBOL: super-message-senders INITIALIZED-SYMBOL: super-message-senders [ H{ } clone ]
message-senders [ H{ } clone ] initialize
super-message-senders [ H{ } clone ] initialize
:: cache-stub ( signature function assoc -- ) :: cache-stub ( signature function assoc -- )
signature assoc [ function sender-stub ] cache drop ; signature assoc [ function sender-stub ] cache drop ;

View File

@ -4,13 +4,9 @@ USING: assocs combinators compiler.units fry grouping kernel
namespaces sequences sets stack-checker.dependencies words ; namespaces sequences sets stack-checker.dependencies words ;
IN: compiler.crossref IN: compiler.crossref
SYMBOL: compiled-crossref INITIALIZED-SYMBOL: compiled-crossref [ H{ } clone ]
compiled-crossref [ H{ } clone ] initialize INITIALIZED-SYMBOL: generic-call-site-crossref [ H{ } clone ]
SYMBOL: generic-call-site-crossref
generic-call-site-crossref [ H{ } clone ] initialize
: all-dependencies-of ( word -- assoc ) : all-dependencies-of ( word -- assoc )
compiled-crossref get at ; compiled-crossref get at ;

View File

@ -25,9 +25,7 @@ IN: compiler.utilities
: pad-tail-shorter ( seq1 seq2 elt -- seq1' seq2' ) : pad-tail-shorter ( seq1 seq2 elt -- seq1' seq2' )
2over longer length swap [ pad-tail ] 2curry bi@ ; 2over longer length swap [ pad-tail ] 2curry bi@ ;
SYMBOL: yield-hook INITIALIZED-SYMBOL: yield-hook [ [ ] ]
yield-hook [ [ ] ] initialize
: alist-most ( alist quot -- pair ) : alist-most ( alist quot -- pair )
[ [ ] ] dip '[ [ [ second ] bi@ @ ] most ] map-reduce ; inline [ [ ] ] dip '[ [ [ second ] bi@ @ ] most ] map-reduce ; inline

View File

@ -4,9 +4,7 @@ USING: kernel words words.symbol sequences lexer parser fry
namespaces combinators assocs math ; namespaces combinators assocs math ;
IN: cpu.x86.assembler.syntax IN: cpu.x86.assembler.syntax
SYMBOL: registers INITIALIZED-SYMBOL: registers [ H{ } clone ]
registers [ H{ } clone ] initialize
: define-register ( name num size -- word ) : define-register ( name num size -- word )
[ create-word-in ] 2dip { [ create-word-in ] 2dip {

View File

@ -12,9 +12,7 @@ GENERIC: definition-icon ( definition -- path )
<< <<
SYMBOL: icons INITIALIZED-SYMBOL: icons [ H{ } clone ]
icons [ H{ } clone ] initialize
: define-icon ( class name -- ) : define-icon ( class name -- )
[ swap icons get set-at ] [ swap icons get set-at ]

View File

@ -9,11 +9,9 @@ SINGLETONS: big-endian little-endian ;
: compute-native-endianness ( -- class ) : compute-native-endianness ( -- class )
1 int <ref> char deref 0 = big-endian little-endian ? ; foldable 1 int <ref> char deref 0 = big-endian little-endian ? ; foldable
SYMBOL: native-endianness INITIALIZED-SYMBOL: native-endianness [ compute-native-endianness ]
native-endianness [ compute-native-endianness ] initialize
SYMBOL: endianness INITIALIZED-SYMBOL: endianness [ native-endianness get-global ]
endianness [ native-endianness get-global ] initialize
HOOK: >native-endian native-endianness ( obj n -- bytes ) HOOK: >native-endian native-endianness ( obj n -- bytes )

View File

@ -2,9 +2,9 @@ USING: arrays accessors continuations kernel math system
sequences namespaces init vocabs combinators ; sequences namespaces init vocabs combinators ;
IN: game.input IN: game.input
SYMBOLS: game-input-backend game-input-opened ; SYMBOL: game-input-backend
game-input-opened [ 0 ] initialize INITIALIZED-SYMBOL: game-input-opened [ 0 ]
HOOK: (open-game-input) game-input-backend ( -- ) HOOK: (open-game-input) game-input-backend ( -- )
HOOK: (close-game-input) game-input-backend ( -- ) HOOK: (close-game-input) game-input-backend ( -- )

View File

@ -5,8 +5,7 @@ IN: gobject-introspection.common
SYMBOL: current-namespace-name SYMBOL: current-namespace-name
SYMBOL: implement-structs INITIALIZED-SYMBOL: implement-structs [ V{ } ]
implement-structs [ V{ } ] initialize
: implement-struct? ( c-type -- ? ) : implement-struct? ( c-type -- ? )
implement-structs get-global member? ; implement-structs get-global member? ;

View File

@ -5,11 +5,9 @@ gobject-introspection.common gobject-introspection.repository kernel
locals namespaces parser sequences sets ; locals namespaces parser sequences sets ;
IN: gobject-introspection.types IN: gobject-introspection.types
SYMBOL: type-infos INITIALIZED-SYMBOL: type-infos [ H{ } ]
type-infos [ H{ } ] initialize
SYMBOL: standard-types INITIALIZED-SYMBOL: standard-types [ V{ } ]
standard-types [ V{ } ] initialize
TUPLE: type-info c-type ; TUPLE: type-info c-type ;

View File

@ -142,9 +142,7 @@ M: word set-article-parent swap "help-parent" set-word-prop ;
[ $title ($blank-line) ] [ $title ($blank-line) ]
[ article-content print-content nl ] bi ; [ article-content print-content nl ] bi ;
SYMBOL: help-hook INITIALIZED-SYMBOL: help-hook [ [ print-topic ] ]
help-hook [ [ print-topic ] ] initialize
: help ( topic -- ) : help ( topic -- )
help-hook get call( topic -- ) ; help-hook get call( topic -- ) ;

View File

@ -6,9 +6,7 @@ namespaces parser sequences source-files.errors system
tools.errors vocabs vocabs.hierarchy ; tools.errors vocabs vocabs.hierarchy ;
IN: help.lint IN: help.lint
SYMBOL: lint-failures INITIALIZED-SYMBOL: lint-failures [ H{ } clone ]
lint-failures [ H{ } clone ] initialize
TUPLE: help-lint-error < source-file-error ; TUPLE: help-lint-error < source-file-error ;

View File

@ -5,9 +5,7 @@ help.stylesheet io io.styles kernel literals namespaces parser
random sequences ui.theme ; random sequences ui.theme ;
IN: help.tips IN: help.tips
SYMBOL: tips INITIALIZED-SYMBOL: tips [ V{ } clone ]
tips [ V{ } clone ] initialize
TUPLE: tip < identity-tuple content loc ; TUPLE: tip < identity-tuple content loc ;

View File

@ -30,13 +30,9 @@ M: link summary
] "" make ; ] "" make ;
! Help articles ! Help articles
SYMBOL: articles INITIALIZED-SYMBOL: articles [ H{ } clone ]
articles [ H{ } clone ] initialize INITIALIZED-SYMBOL: article-xref [ H{ } clone ]
SYMBOL: article-xref
article-xref [ H{ } clone ] initialize
GENERIC: valid-article? ( topic -- ? ) GENERIC: valid-article? ( topic -- ? )
GENERIC: article-title ( topic -- string ) GENERIC: article-title ( topic -- string )

View File

@ -7,9 +7,7 @@ multiline xml xml.data xml.writer xml.syntax html.components
html.templates ; html.templates ;
IN: html.templates.chloe.syntax IN: html.templates.chloe.syntax
SYMBOL: tags INITIALIZED-SYMBOL: tags [ H{ } clone ]
tags [ H{ } clone ] initialize
: define-chloe-tag ( name quot -- ) swap tags get set-at ; : define-chloe-tag ( name quot -- ) swap tags get set-at ;

View File

@ -30,9 +30,7 @@ ERROR: bad-request-line < request-error parse-error ;
: read-request-header ( request -- request ) : read-request-header ( request -- request )
read-header >>header ; read-header >>header ;
SYMBOL: upload-limit INITIALIZED-SYMBOL: upload-limit [ 200,000,000 ]
upload-limit [ 200,000,000 ] initialize
: parse-multipart-form-data ( string -- separator ) : parse-multipart-form-data ( string -- separator )
";" split1 nip ";" split1 nip

View File

@ -197,9 +197,7 @@ LOG: httpd-benchmark DEBUG
TUPLE: http-server < threaded-server ; TUPLE: http-server < threaded-server ;
SYMBOL: request-limit INITIALIZED-SYMBOL: request-limit [ 64 1024 * ]
request-limit [ 64 1024 * ] initialize
LOG: httpd-bad-request NOTICE LOG: httpd-bad-request NOTICE

View File

@ -9,8 +9,7 @@ ERROR: unknown-image-extension extension ;
<PRIVATE <PRIVATE
SYMBOL: types INITIALIZED-SYMBOL: types [ H{ } clone ]
types [ H{ } clone ] initialize
: (image-class) ( type -- class ) : (image-class) ( type -- class )
>lower types get ?at [ unknown-image-extension ] unless ; >lower types get ?at [ unknown-image-extension ] unless ;

View File

@ -185,9 +185,7 @@ M: stdin cancel-operation
size-read-fd <fd> init-fd <input-port> >>size size-read-fd <fd> init-fd <input-port> >>size
data-read-fd <fd> >>data ; data-read-fd <fd> >>data ;
SYMBOL: dispatch-signal-hook INITIALIZED-SYMBOL: dispatch-signal-hook [ [ drop ] ]
dispatch-signal-hook [ [ drop ] ] initialize
: signal-pipe-fd ( -- n ) : signal-pipe-fd ( -- n )
OBJ-SIGNAL-PIPE special-object ; inline OBJ-SIGNAL-PIPE special-object ; inline

View File

@ -6,11 +6,10 @@ kernel kernel.private locals math namespaces sequences sorting
strings system unicode vocabs ; strings system unicode vocabs ;
IN: io.directories.search IN: io.directories.search
SYMBOL: traversal-method
SYMBOLS: +depth-first+ +breadth-first+ ; SYMBOLS: +depth-first+ +breadth-first+ ;
traversal-method [ +depth-first+ ] initialize INITIALIZED-SYMBOL: traversal-method [ +depth-first+ ]
<PRIVATE <PRIVATE

View File

@ -24,8 +24,7 @@ handler
server-stopped server-stopped
secure-context ; secure-context ;
SYMBOL: running-servers INITIALIZED-SYMBOL: running-servers [ HS{ } clone ]
running-servers [ HS{ } clone ] initialize
ERROR: server-not-running threaded-server ; ERROR: server-not-running threaded-server ;

View File

@ -10,9 +10,7 @@ IN: logging
SYMBOLS: DEBUG NOTICE WARNING ERROR CRITICAL ; SYMBOLS: DEBUG NOTICE WARNING ERROR CRITICAL ;
SYMBOL: log-level INITIALIZED-SYMBOL: log-level [ DEBUG ]
log-level [ DEBUG ] initialize
: log-levels ( -- assoc ) : log-levels ( -- assoc )
H{ H{

View File

@ -111,9 +111,7 @@ PRIVATE>
: watch-vars ( word vars -- ) : watch-vars ( word vars -- )
dupd '[ [ _ _ ] dip (watch-vars) ] annotate ; dupd '[ [ _ _ ] dip (watch-vars) ] annotate ;
SYMBOL: word-timing INITIALIZED-SYMBOL: word-timing [ H{ } clone ]
word-timing [ H{ } clone ] initialize
: reset-word-timing ( -- ) : reset-word-timing ( -- )
word-timing get clear-assoc ; word-timing get clear-assoc ;

View File

@ -8,9 +8,7 @@ words ;
IN: tools.deprecation IN: tools.deprecation
SYMBOL: +deprecation-note+ SYMBOL: +deprecation-note+
SYMBOL: deprecation-notes INITIALIZED-SYMBOL: deprecation-notes [ H{ } clone ]
deprecation-notes [ H{ } clone ] initialize
TUPLE: deprecation-note < source-file-error ; TUPLE: deprecation-note < source-file-error ;

View File

@ -12,9 +12,7 @@ PRIMITIVE: (get-samples) ( -- samples/f )
PRIMITIVE: profiling ( n -- ) PRIMITIVE: profiling ( n -- )
PRIVATE> PRIVATE>
SYMBOL: samples-per-second INITIALIZED-SYMBOL: samples-per-second [ 1,000 ]
samples-per-second [ 1,000 ] initialize
<PRIVATE <PRIVATE
SYMBOL: raw-profile-data SYMBOL: raw-profile-data

View File

@ -5,8 +5,7 @@ summary tools.test tools.test.private ;
IN: tools.test.fuzz IN: tools.test.fuzz
! Fuzz testing parameters ! Fuzz testing parameters
SYMBOL: fuzz-test-trials INITIALIZED-SYMBOL: fuzz-test-trials [ 100 ]
fuzz-test-trials [ 100 ] initialize
: fuzz-test-failures* ( trials generator: ( -- ..a ) predicate: ( ..a -- ? ) -- failures ) : fuzz-test-failures* ( trials generator: ( -- ..a ) predicate: ( ..a -- ? ) -- failures )
'[ '[

View File

@ -18,9 +18,7 @@ SYMBOL: +test-failure+
M: test-failure error-type drop +test-failure+ ; M: test-failure error-type drop +test-failure+ ;
SYMBOL: test-failures INITIALIZED-SYMBOL: test-failures [ V{ } clone ]
test-failures [ V{ } clone ] initialize
T{ error-type-holder T{ error-type-holder
{ type +test-failure+ } { type +test-failure+ }
@ -44,8 +42,7 @@ t restartable-tests? set-global
swap >>error swap >>error
error-continuation get >>continuation ; error-continuation get >>continuation ;
SYMBOL: long-unit-tests-enabled? INITIALIZED-SYMBOL: long-unit-tests-enabled? [ t ]
long-unit-tests-enabled? [ t ] initialize
<PRIVATE <PRIVATE

View File

@ -207,11 +207,9 @@ M: cocoa-ui-backend system-alert
: install-app-delegate ( -- ) : install-app-delegate ( -- )
NSApp FactorApplicationDelegate install-delegate ; NSApp FactorApplicationDelegate install-delegate ;
SYMBOL: cocoa-startup-hook INITIALIZED-SYMBOL: cocoa-startup-hook [
cocoa-startup-hook [
[ "MiniFactor.nib" load-nib install-app-delegate ] [ "MiniFactor.nib" load-nib install-app-delegate ]
] initialize ]
M: cocoa-ui-backend (with-ui) M: cocoa-ui-backend (with-ui)
"UI" assert.app [ "UI" assert.app [

View File

@ -179,9 +179,7 @@ CONSTANT: default-icon-path "resource:misc/icons/Factor_128x128.png"
default-icon-path binary file-contents default-icon-path binary file-contents
] [ drop f ] recover ; ] [ drop f ] recover ;
SYMBOL: icon-data INITIALIZED-SYMBOL: icon-data [ default-icon-data ]
icon-data [ default-icon-data ] initialize
: vocab-icon-data ( vocab-name -- byte-array ) : vocab-icon-data ( vocab-name -- byte-array )
dup vocab-dir { "icon.png" "icon.ico" } [ dup vocab-dir { "icon.png" "icon.ico" } [

View File

@ -502,17 +502,7 @@ SYMBOL: nc-buttons
: handle-wm-dwmcompositionchanged ( hWnd uMsg wParam lParam -- ) : handle-wm-dwmcompositionchanged ( hWnd uMsg wParam lParam -- )
3drop [ window ] keep ?make-glass ; 3drop [ window ] keep ?make-glass ;
SYMBOL: wm-handlers INITIALIZED-SYMBOL: wm-handlers [
: add-wm-handler ( quot: ( hWnd Msg wParam lParam -- LRESULT ) wm -- )
dup array?
[ [ execute( -- wm ) add-wm-handler ] with each ]
[ wm-handlers get-global set-at ] if ;
: remove-wm-handler ( wm -- )
wm-handlers get-global delete-at ;
wm-handlers [
H{ H{
${ WM_CLOSE [ handle-wm-close 0 ] } ${ WM_CLOSE [ handle-wm-close 0 ] }
${ WM_PAINT [ 4dup handle-wm-paint DefWindowProc ] } ${ WM_PAINT [ 4dup handle-wm-paint DefWindowProc ] }
@ -548,7 +538,15 @@ wm-handlers [
${ WM_CANCELMODE [ handle-wm-cancelmode 0 ] } ${ WM_CANCELMODE [ handle-wm-cancelmode 0 ] }
${ WM_MOUSELEAVE [ handle-wm-mouseleave 0 ] } ${ WM_MOUSELEAVE [ handle-wm-mouseleave 0 ] }
} expand-keys-set-at } expand-keys-set-at
] initialize ]
: add-wm-handler ( quot: ( hWnd Msg wParam lParam -- LRESULT ) wm -- )
dup array?
[ [ execute( -- wm ) add-wm-handler ] with each ]
[ wm-handlers get-global set-at ] if ;
: remove-wm-handler ( wm -- )
wm-handlers get-global delete-at ;
SYMBOL: trace-messages? SYMBOL: trace-messages?

View File

@ -165,9 +165,7 @@ M: world remove-gadget
2dup layers>> member-eq? 2dup layers>> member-eq?
[ layers>> remove-eq! drop ] [ call-next-method ] if ; [ layers>> remove-eq! drop ] [ call-next-method ] if ;
SYMBOL: flush-layout-cache-hook INITIALIZED-SYMBOL: flush-layout-cache-hook [ [ ] ]
flush-layout-cache-hook [ [ ] ] initialize
GENERIC: begin-world ( world -- ) GENERIC: begin-world ( world -- )
GENERIC: end-world ( world -- ) GENERIC: end-world ( world -- )
@ -206,12 +204,11 @@ TUPLE: world-error error world ;
C: <world-error> world-error C: <world-error> world-error
SYMBOL: ui-error-hook ! ( error -- ) INITIALIZED-SYMBOL: ui-error-hook [ [ rethrow ] ] ! ( error -- )
: ui-error ( error -- ) : ui-error ( error -- )
ui-error-hook get [ call( error -- ) ] [ die drop ] if* ; ui-error-hook get [ call( error -- ) ] [ die drop ] if* ;
ui-error-hook [ [ rethrow ] ] initialize
: draw-world ( world -- ) : draw-world ( world -- )
dup draw-world? [ dup draw-world? [

View File

@ -30,9 +30,7 @@ M: operation command-word command>> command-word ;
: operation-gesture ( operation -- gesture ) : operation-gesture ( operation -- gesture )
command>> +keyboard+ word-prop ; command>> +keyboard+ word-prop ;
SYMBOL: operations INITIALIZED-SYMBOL: operations [ <linked-hash> ]
operations [ <linked-hash> ] initialize
: object-operations ( obj -- operations ) : object-operations ( obj -- operations )
operations get values operations get values

View File

@ -3,7 +3,11 @@
USING: colors colors.constants colors.hex namespaces ; USING: colors colors.constants colors.hex namespaces ;
IN: ui.theme IN: ui.theme
SYMBOL: theme SINGLETON: light-theme
SINGLETON: dark-theme
INITIALIZED-SYMBOL: theme [ light-theme ]
HOOK: toolbar-background theme ( -- color ) HOOK: toolbar-background theme ( -- color )
HOOK: toolbar-button-pressed-background theme ( -- color ) HOOK: toolbar-button-pressed-background theme ( -- color )
@ -91,9 +95,6 @@ HOOK: labeled-border-color theme ( -- color )
HOOK: table-border-color theme ( -- color ) HOOK: table-border-color theme ( -- color )
SINGLETON: light-theme
theme [ light-theme ] initialize
M: light-theme toolbar-background color: grey95 ; M: light-theme toolbar-background color: grey95 ;
M: light-theme toolbar-button-pressed-background color: dark-gray ; M: light-theme toolbar-button-pressed-background color: dark-gray ;
@ -180,8 +181,6 @@ M: light-theme labeled-border-color color: grey85 ;
M: light-theme table-border-color color: FactorTan ; M: light-theme table-border-color color: FactorTan ;
SINGLETON: dark-theme
M: dark-theme toolbar-background color: solarized-base02 ; M: dark-theme toolbar-background color: solarized-base02 ;
M: dark-theme toolbar-button-pressed-background color: solarized-base0 ; M: dark-theme toolbar-button-pressed-background color: solarized-base0 ;

View File

@ -6,9 +6,7 @@ IN: unix.signals
<PRIVATE <PRIVATE
SYMBOL: signal-handlers INITIALIZED-SYMBOL: signal-handlers [ H{ } ]
signal-handlers [ H{ } ] initialize
: dispatch-signal ( sig -- ) : dispatch-signal ( sig -- )
signal-handlers get-global at [ in-thread ] each ; signal-handlers get-global at [ in-thread ] each ;

View File

@ -18,9 +18,7 @@ PRIMITIVE: (dlsym-raw) ( name dll -- alien )
HOOK: dlerror os ( -- message/f ) HOOK: dlerror os ( -- message/f )
SYMBOL: libraries INITIALIZED-SYMBOL: libraries [ H{ } clone ]
libraries [ H{ } clone ] initialize
TUPLE: library { path string } dll dlerror { abi abi initial: cdecl } ; TUPLE: library { path string } dll dlerror { abi abi initial: cdecl } ;
@ -90,9 +88,7 @@ M: library dispose dll>> [ dispose ] when* ;
2dup library-dll dlsym-raw 2dup library-dll dlsym-raw
[ 2nip ] [ no-such-symbol ] if* ; [ 2nip ] [ no-such-symbol ] if* ;
SYMBOL: deploy-libraries INITIALIZED-SYMBOL: deploy-libraries [ V{ } clone ]
deploy-libraries [ V{ } clone ] initialize
: deploy-library ( name -- ) : deploy-library ( name -- )
dup libraries get key? dup libraries get key?

View File

@ -13,14 +13,11 @@ IN: bootstrap.syntax
":" ":"
";" ";"
"<PRIVATE" "<PRIVATE"
"<WINDOWS" "<UNIX" "UNIX>"
"<UNIX" "<LINUX" "LINUX>"
"<LINUX" "<MACOS" "MACOS>"
"<MACOS" "<WINDOWS" "WINDOWS>"
"WINDOWS>" "<FACTOR" "FACTOR>"
"UNIX>"
"LINUX>"
"MACOS>"
"B{" "B{"
"BV{" "BV{"
"C:" "C:"
@ -49,6 +46,7 @@ IN: bootstrap.syntax
"SINGLETON:" "SINGLETON:"
"SINGLETONS:" "SINGLETONS:"
"BUILTIN:" "BUILTIN:"
"INITIALIZED-SYMBOL:"
"SYMBOL:" "SYMBOL:"
"SYMBOLS:" "SYMBOLS:"
"CONSTANT:" "CONSTANT:"
@ -157,7 +155,6 @@ IN: bootstrap.syntax
"'let[" "'let["
"FUNCTOR:" "FUNCTOR:"
"VARIABLES-FUNCTOR:" "VARIABLES-FUNCTOR:"
"INITIALIZED-SYMBOL:"
"STARTUP-HOOK:" "STARTUP-HOOK:"
"SHUTDOWN-HOOK:" "SHUTDOWN-HOOK:"
} [ "syntax" create-word drop ] each } [ "syntax" create-word drop ] each

View File

@ -5,18 +5,14 @@ source-files.errors summary ;
IN: compiler.errors IN: compiler.errors
SYMBOL: +compiler-error+ SYMBOL: +compiler-error+
SYMBOL: compiler-errors INITIALIZED-SYMBOL: compiler-errors [ H{ } clone ]
compiler-errors [ H{ } clone ] initialize
TUPLE: compiler-error < source-file-error ; TUPLE: compiler-error < source-file-error ;
M: compiler-error error-type drop +compiler-error+ ; M: compiler-error error-type drop +compiler-error+ ;
SYMBOL: +linkage-error+ SYMBOL: +linkage-error+
SYMBOL: linkage-errors INITIALIZED-SYMBOL: linkage-errors [ H{ } clone ]
linkage-errors [ H{ } clone ] initialize
TUPLE: linkage-error < source-file-error ; TUPLE: linkage-error < source-file-error ;

View File

@ -117,14 +117,16 @@ PRIVATE>
GENERIC: error-in-thread ( error thread -- * ) GENERIC: error-in-thread ( error thread -- * )
SYMBOL: thread-error-hook ! ( error thread -- * ) DEFER: rethrow
INITIALIZED-SYMBOL: thread-error-hook [ [ die drop rethrow ] ] ! ( error thread -- * )
M: object error-in-thread M: object error-in-thread
thread-error-hook get-global call( error thread -- * ) ; thread-error-hook get-global call( error thread -- * ) ;
: in-callback? ( -- ? ) CONTEXT-OBJ-IN-CALLBACK-P context-object ; : in-callback? ( -- ? ) CONTEXT-OBJ-IN-CALLBACK-P context-object ;
SYMBOL: callback-error-hook ! ( error -- * ) INITIALIZED-SYMBOL: callback-error-hook [ [ die rethrow ] ] ! ( error -- * )
: rethrow ( error -- * ) : rethrow ( error -- * )
dup save-error dup save-error
@ -135,10 +137,6 @@ SYMBOL: callback-error-hook ! ( error -- * )
if if
] [ pop continue-with ] if-empty ; ] [ pop continue-with ] if-empty ;
thread-error-hook [ [ die drop rethrow ] ] initialize
callback-error-hook [ [ die rethrow ] ] initialize
: recover ( ..a try: ( ..a -- ..b ) recovery: ( ..a error -- ..b ) -- ..b ) : recover ( ..a try: ( ..a -- ..b ) recovery: ( ..a error -- ..b ) -- ..b )
[ [
[ [

View File

@ -4,11 +4,8 @@ USING: assocs continuations continuations.private kernel
kernel.private namespaces ; kernel.private namespaces ;
IN: init IN: init
SYMBOL: startup-hooks INITIALIZED-SYMBOL: startup-hooks [ V{ } clone ]
SYMBOL: shutdown-hooks INITIALIZED-SYMBOL: shutdown-hooks [ V{ } clone ]
startup-hooks [ V{ } clone ] initialize
shutdown-hooks [ V{ } clone ] initialize
: do-hooks ( symbol -- ) : do-hooks ( symbol -- )
get [ nip call( -- ) ] assoc-each ; get [ nip call( -- ) ] assoc-each ;

View File

@ -4,11 +4,9 @@ USING: assocs init io io.encodings io.encodings.utf8 kernel
namespaces system ; namespaces system ;
IN: io.backend IN: io.backend
SYMBOL: io-backend
SINGLETON: c-io-backend SINGLETON: c-io-backend
io-backend [ c-io-backend ] initialize INITIALIZED-SYMBOL: io-backend [ c-io-backend ]
HOOK: init-io io-backend ( -- ) HOOK: init-io io-backend ( -- )

View File

@ -167,9 +167,7 @@ SYMBOL: bootstrap-syntax
call call
] with-manifest ; inline ] with-manifest ; inline
SYMBOL: print-use-hook INITIALIZED-SYMBOL: print-use-hook [ [ ] ]
print-use-hook [ [ ] ] initialize
: parse-fresh ( lines -- quot ) : parse-fresh ( lines -- quot )
[ [

View File

@ -36,9 +36,7 @@ TUPLE: error-type-holder type word plural icon quot forget-quot { fatal? initial
GENERIC: error-type ( error -- type ) GENERIC: error-type ( error -- type )
SYMBOL: error-types INITIALIZED-SYMBOL: error-types [ V{ } clone ]
error-types [ V{ } clone ] initialize
: define-error-type ( error-type -- ) : define-error-type ( error-type -- )
dup type>> error-types get set-at ; dup type>> error-types get set-at ;

View File

@ -124,9 +124,7 @@ TUPLE: alien-callback-params < alien-node-params
GENERIC: wrap-callback-quot ( params quot -- quot' ) GENERIC: wrap-callback-quot ( params quot -- quot' )
SYMBOL: wait-for-callback-hook INITIALIZED-SYMBOL: wait-for-callback-hook [ [ drop ] ]
wait-for-callback-hook [ [ drop ] ] initialize
M: callable wrap-callback-quot M: callable wrap-callback-quot
swap [ callback-parameter-quot ] [ callback-return-quot ] bi surround swap [ callback-parameter-quot ] [ callback-return-quot ] bi surround

View File

@ -33,11 +33,9 @@ ERROR: bad-escape char ;
{ char: \) char: \) } { char: \) char: \) }
} ?at [ bad-escape ] unless ; } ?at [ bad-escape ] unless ;
SYMBOL: name>char-hook INITIALIZED-SYMBOL: name>char-hook [
name>char-hook [
[ "Unicode support not available" throw ] [ "Unicode support not available" throw ]
] initialize ]
: hex-escape ( str -- ch str' ) : hex-escape ( str -- ch str' )
2 cut-slice [ hex> ] dip ; 2 cut-slice [ hex> ] dip ;

View File

@ -52,7 +52,11 @@ IN: bootstrap.syntax
dup [ define-fry-specifier ] curry each ; dup [ define-fry-specifier ] curry each ;
[ [
{ "]" "}" ";" ">>" "UNIX>" "MACOS>" "LINUX>" "WINDOWS>" } [ define-delimiter ] each {
"]" "}" ";" ">>"
"UNIX>" "MACOS>" "LINUX>" "WINDOWS>"
"FACTOR>"
} [ define-delimiter ] each
"PRIMITIVE:" [ "PRIMITIVE:" [
current-vocab name>> current-vocab name>>
@ -89,6 +93,9 @@ IN: bootstrap.syntax
os windows? [ ".windows" parse-platform-section ] [ drop ] if os windows? [ ".windows" parse-platform-section ] [ drop ] if
] define-core-syntax ] define-core-syntax
"<FACTOR" [
"FACTOR>" parse-multiline-string "" parse-platform-section
] define-core-syntax
"USE:" [ scan-token use-vocab ] define-core-syntax "USE:" [ scan-token use-vocab ] define-core-syntax
@ -172,14 +179,11 @@ IN: bootstrap.syntax
(parse-tuple-definition) 2drop check-builtin (parse-tuple-definition) 2drop check-builtin
] define-core-syntax ] define-core-syntax
"SYMBOL:" [ "INITIALIZED-SYMBOL:" [
scan-new-word define-symbol scan-new-word [ define-symbol ] keep scan-object '[ _ _ initialize ] append!
] define-core-syntax
"SYMBOLS:" [
";" [ create-word-in [ reset-generic ] [ define-symbol ] bi ] each-token
] define-core-syntax ] define-core-syntax
![[
"INITIALIZED-SYMBOL:" [ "INITIALIZED-SYMBOL:" [
scan-new-word [ define-symbol ] scan-new-word [ define-symbol ]
[ [
@ -187,6 +191,15 @@ IN: bootstrap.syntax
scan-object dupd [ initialize ] curry curry ( -- ) define-declared scan-object dupd [ initialize ] curry curry ( -- ) define-declared
] bi ] bi
] define-core-syntax ] define-core-syntax
]]
"SYMBOL:" [
scan-new-word define-symbol
] define-core-syntax
"SYMBOLS:" [
";" [ create-word-in [ reset-generic ] [ define-symbol ] bi ] each-token
] define-core-syntax
"STARTUP-HOOK:" [ "STARTUP-HOOK:" [
scan-new-word scan-object scan-new-word scan-object

View File

@ -26,8 +26,7 @@ CONSTANT: default-vocab-roots {
trim-tail-separators dup vocab-roots get ?adjoin trim-tail-separators dup vocab-roots get ?adjoin
[ add-vocab-root-hook get-global call( root -- ) ] [ drop ] if ; [ add-vocab-root-hook get-global call( root -- ) ] [ drop ] if ;
SYMBOL: root-cache INITIALIZED-SYMBOL: root-cache [ H{ } clone ]
root-cache [ H{ } clone ] initialize
ERROR: not-found-in-roots path ; ERROR: not-found-in-roots path ;
@ -71,16 +70,13 @@ PRIVATE>
SYMBOL: load-help? SYMBOL: load-help?
! Defined by vocabs.metadata ! Defined by vocabs.metadata
SYMBOL: check-vocab-hook INITIALIZED-SYMBOL: check-vocab-hook [ [ drop ] ]
check-vocab-hook [ [ drop ] ] initialize
<PRIVATE <PRIVATE
SYMBOL: require-when-vocabs INITIALIZED-SYMBOL: require-when-vocabs [ HS{ } clone ]
require-when-vocabs [ HS{ } clone ] initialize
SYMBOL: require-when-table INITIALIZED-SYMBOL: require-when-table [ V{ } clone ]
require-when-table [ V{ } clone ] initialize
: load-conditional-requires ( vocab -- ) : load-conditional-requires ( vocab -- )
vocab-name require-when-vocabs get in? [ vocab-name require-when-vocabs get in? [

View File

@ -25,9 +25,9 @@ DEFER: fortran-ret-type>c-type
DEFER: fortran-arg-type>c-type DEFER: fortran-arg-type>c-type
DEFER: fortran-name>symbol-name DEFER: fortran-name>symbol-name
SYMBOL: library-fortran-abis INITIALIZED-SYMBOL: library-fortran-abis [ H{ } clone ]
SYMBOL: fortran-abi SYMBOL: fortran-abi
library-fortran-abis [ H{ } clone ] initialize
<PRIVATE <PRIVATE

View File

@ -6,10 +6,8 @@ IN: alien.handles
<PRIVATE <PRIVATE
SYMBOLS: alien-handle-counter alien-handles ; INITIALIZED-SYMBOL: alien-handle-counter [ 0 ]
INITIALIZED-SYMBOL: alien-handles [ H{ } clone ]
alien-handle-counter [ 0 ] initialize
alien-handles [ H{ } clone ] initialize
: biggest-handle ( -- n ) : biggest-handle ( -- n )
-1 32 bits ; inline -1 32 bits ; inline

View File

@ -6,8 +6,7 @@ IN: audio.loader
ERROR: unknown-audio-extension extension ; ERROR: unknown-audio-extension extension ;
SYMBOL: audio-types INITIALIZED-SYMBOL: audio-types [ H{ } clone ]
audio-types [ H{ } clone ] initialize
: register-audio-extension ( extension quot -- ) : register-audio-extension ( extension quot -- )
swap audio-types get set-at ; swap audio-types get set-at ;

View File

@ -6,8 +6,7 @@ io.pathnames kernel math namespaces sequences splitting
system-info unicode ; system-info unicode ;
IN: cli.git IN: cli.git
SYMBOL: cli-git-num-parallel INITIALIZED-SYMBOL: cli-git-num-parallel [ cpus 2 * ]
cli-git-num-parallel [ cpus 2 * ] initialize
: git-command>string ( quot -- string ) : git-command>string ( quot -- string )
utf8 <process-reader> stream-contents [ blank? ] trim-tail ; utf8 <process-reader> stream-contents [ blank? ] trim-tail ;

View File

@ -198,11 +198,9 @@ TUPLE: code-file
: write-dest-file ( xml name ext -- ) : write-dest-file ( xml name ext -- )
append utf8 [ write-xml ] with-file-writer ; append utf8 [ write-xml ] with-file-writer ;
SYMBOL: kindlegen-path INITIALIZED-SYMBOL: kindlegen-path [ "kindlegen" ]
kindlegen-path [ "kindlegen" ] initialize
SYMBOL: codebook-output-path INITIALIZED-SYMBOL: codebook-output-path [ "resource:codebooks" ]
codebook-output-path [ "resource:codebooks" ] initialize
: kindlegen ( path -- ) : kindlegen ( path -- )
[ kindlegen-path get "-unicode" ] dip 3array try-process ; [ kindlegen-path get "-unicode" ] dip 3array try-process ;

View File

@ -14,8 +14,7 @@ VARIANT: cuda-abi
SYMBOL: cuda-modules SYMBOL: cuda-modules
SYMBOL: cuda-functions SYMBOL: cuda-functions
SYMBOL: cuda-libraries INITIALIZED-SYMBOL: cuda-libraries [ H{ } clone ]
cuda-libraries [ H{ } clone ] initialize
SYMBOL: current-cuda-library SYMBOL: current-cuda-library

View File

@ -35,7 +35,7 @@ ENUM: dns-opcode QUERY IQUERY STATUS ;
ENUM: dns-rcode NO-ERROR FORMAT-ERROR SERVER-FAILURE ENUM: dns-rcode NO-ERROR FORMAT-ERROR SERVER-FAILURE
NAME-ERROR NOT-IMPLEMENTED REFUSED ; NAME-ERROR NOT-IMPLEMENTED REFUSED ;
SYMBOL: dns-servers INITIALIZED-SYMBOL: dns-servers [ initial-dns-servers >vector ]
: add-dns-server ( string -- ) : add-dns-server ( string -- )
dns-servers get push ; dns-servers get push ;
@ -424,4 +424,3 @@ UNIX>
: with-dns-servers ( servers quot -- ) : with-dns-servers ( servers quot -- )
[ dns-servers ] dip with-variable ; inline [ dns-servers ] dip with-variable ; inline
dns-servers [ initial-dns-servers >vector ] initialize

View File

@ -40,8 +40,7 @@ TUPLE: b-rep < identity-tuple faces edges vertices ;
: <b-rep> ( -- b-rep ) : <b-rep> ( -- b-rep )
V{ } clone V{ } clone V{ } clone b-rep boa ; V{ } clone V{ } clone V{ } clone b-rep boa ;
SYMBOL: sharpness-stack INITIALIZED-SYMBOL: sharpness-stack [ V{ t } ]
sharpness-stack [ V{ t } ] initialize
: set-sharpness ( sharp? -- ) >boolean sharpness-stack get set-last ; : set-sharpness ( sharp? -- ) >boolean sharpness-stack get set-last ;
: get-sharpness ( -- sharp? ) sharpness-stack get last ; : get-sharpness ( -- sharp? ) sharpness-stack get last ;

View File

@ -10,8 +10,7 @@ ERROR: unknown-models-extension extension ;
<PRIVATE <PRIVATE
SYMBOL: types INITIALIZED-SYMBOL: types [ H{ } clone ]
types [ H{ } clone ] initialize
: models-class ( path -- class ) : models-class ( path -- class )
file-extension >lower types get ?at file-extension >lower types get ?at

View File

@ -8,11 +8,9 @@ IN: gml.macros
TUPLE: macro macro-id timestamp log ; TUPLE: macro macro-id timestamp log ;
SYMBOL: next-macro-id INITIALIZED-SYMBOL: next-macro-id [ 0 ]
next-macro-id [ 0 ] initialize
SYMBOL: macros INITIALIZED-SYMBOL: macros [ H{ } clone ]
macros [ H{ } clone ] initialize
SYMBOL: current-macro SYMBOL: current-macro

View File

@ -8,9 +8,7 @@ IN: gml.runtime
TUPLE: gml-name < identity-tuple { string read-only } ; TUPLE: gml-name < identity-tuple { string read-only } ;
SYMBOL: gml-names INITIALIZED-SYMBOL: gml-names [ H{ } clone ]
gml-names [ H{ } clone ] initialize
: >gml-name ( string -- name ) gml-names get-global [ \ gml-name boa ] cache ; : >gml-name ( string -- name ) gml-names get-global [ \ gml-name boa ] cache ;
@ -172,9 +170,7 @@ MACRO: gml-primitive (
) )
swap '[ _ inputs @ _ outputs ] ; swap '[ _ inputs @ _ outputs ] ;
SYMBOL: global-dictionary INITIALIZED-SYMBOL: global-dictionary [ H{ } clone ]
global-dictionary [ H{ } clone ] initialize
: add-primitive ( word name -- ) : add-primitive ( word name -- )
>gml-name global-dictionary get-global set-at ; >gml-name global-dictionary get-global set-at ;

View File

@ -7,8 +7,7 @@ io.encodings.utf32 io.encodings.utf8 io.files kernel literals
math namespaces sequences strings ; math namespaces sequences strings ;
IN: io.encodings.detect IN: io.encodings.detect
SYMBOL: default-encoding INITIALIZED-SYMBOL: default-encoding [ latin1 ]
default-encoding [ latin1 ] initialize
<PRIVATE <PRIVATE

View File

@ -8,8 +8,7 @@ IN: irc.messages.base
TUPLE: irc-message line prefix command parameters trailing timestamp sender ; TUPLE: irc-message line prefix command parameters trailing timestamp sender ;
TUPLE: unhandled < irc-message ; TUPLE: unhandled < irc-message ;
SYMBOL: string-irc-type-mapping INITIALIZED-SYMBOL: string-irc-type-mapping [ H{ } clone ]
string-irc-type-mapping [ H{ } clone ] initialize
: register-irc-message-type ( type string -- ) : register-irc-message-type ( type string -- )
string-irc-type-mapping get set-at ; string-irc-type-mapping get set-at ;

View File

@ -8,11 +8,9 @@ IN: managed-server.chat
TUPLE: chat-server < managed-server ; TUPLE: chat-server < managed-server ;
SYMBOL: commands INITIALIZED-SYMBOL: commands [ H{ } clone ]
commands [ H{ } clone ] initialize
SYMBOL: chat-docs INITIALIZED-SYMBOL: chat-docs [ H{ } clone ]
chat-docs [ H{ } clone ] initialize
CONSTANT: line-beginning "-!- " CONSTANT: line-beginning "-!- "

View File

@ -7,9 +7,9 @@ IN: marvel
! http://developer.marvel.com/docs ! http://developer.marvel.com/docs
! Register for an api key. ! Register for an api key.
SYMBOLS: marvel-base-url marvel-public-key marvel-private-key ; SYMBOLS: marvel-public-key marvel-private-key ;
marvel-base-url [ "http://gateway.marvel.com/v1/public/" ] initialize INITIALIZED-SYMBOL: marvel-base-url [ "http://gateway.marvel.com/v1/public/" ]
: calculate-hash ( ts -- hash ) : calculate-hash ( ts -- hash )
number>string number>string

View File

@ -36,14 +36,10 @@ SYMBOL: boot-flags
SYMBOL: builder-debug SYMBOL: builder-debug
! URL for counter notifications. ! URL for counter notifications.
SYMBOL: counter-url INITIALIZED-SYMBOL: counter-url [ "http://builds.factorcode.org/counter" ]
counter-url [ "http://builds.factorcode.org/counter" ] initialize
! URL for status notifications. ! URL for status notifications.
SYMBOL: status-url INITIALIZED-SYMBOL: status-url [ "http://builds.factorcode.org/status-update" ]
status-url [ "http://builds.factorcode.org/status-update" ] initialize
! Password for status notifications. ! Password for status notifications.
SYMBOL: status-secret SYMBOL: status-secret
@ -62,9 +58,7 @@ SYMBOL: docs-username
SYMBOL: docs-directory SYMBOL: docs-directory
! URL to notify server about new docs ! URL to notify server about new docs
SYMBOL: docs-update-url INITIALIZED-SYMBOL: docs-update-url [ "http://builds.factorcode.org/docs-update" ]
docs-update-url [ "http://builds.factorcode.org/docs-update" ] initialize
! Boolean. Do we upload package binaries? ! Boolean. Do we upload package binaries?
SYMBOL: upload-package? SYMBOL: upload-package?
@ -106,8 +100,6 @@ SYMBOL: upload-timeout
1 hours upload-timeout set-global 1 hours upload-timeout set-global
! Optional: override ssh and scp command names ! Optional: override ssh and scp command names
SYMBOL: scp-command INITIALIZED-SYMBOL: scp-command [ "scp" ]
scp-command [ "scp" ] initialize
SYMBOL: ssh-command INITIALIZED-SYMBOL: ssh-command [ "ssh" ]
ssh-command [ "ssh" ] initialize

View File

@ -2,9 +2,7 @@ USING: alien.fortran combinators kernel math namespaces
sequences system system-info ; sequences system system-info ;
IN: math.blas.config IN: math.blas.config
SYMBOLS: blas-library blas-fortran-abi deploy-blas? ; INITIALIZED-SYMBOL: blas-library [
blas-library [
{ {
{ [ os macosx? ] [ "libblas.dylib" ] } { [ os macosx? ] [ "libblas.dylib" ] }
{ [ os windows? ] [ "blas.dll" ] } { [ os windows? ] [ "blas.dll" ] }
@ -12,7 +10,7 @@ blas-library [
} cond } cond
] initialize ] initialize
blas-fortran-abi [ INITIALIZED-SYMBOL: blas-fortran-abi [
{ {
{ [ os macosx? cpu x86.32? and ] [ intel-unix-abi ] } { [ os macosx? cpu x86.32? and ] [ intel-unix-abi ] }
{ [ os macosx? cpu x86.64? and ] { [ os macosx? cpu x86.64? and ]
@ -31,6 +29,6 @@ ou will need to install a third-party BLAS library and configure Factor. See `\"
{ [ os linux? ] [ gfortran-abi ] } { [ os linux? ] [ gfortran-abi ] }
[ f2c-abi ] [ f2c-abi ]
} cond } cond
] initialize ]
deploy-blas? [ os macosx? not ] initialize INITIALIZED-SYMBOL: deploy-blas? [ os macosx? not ]

View File

@ -7,8 +7,7 @@ splitting strings ;
IN: modern.compiler IN: modern.compiler
<< <<
SYMBOL: left-decorators INITIALIZED-SYMBOL: left-decorators [ HS{ } clone ]
left-decorators [ HS{ } clone ] initialize
>> >>
<< <<
: make-left-decorator ( string -- ) : make-left-decorator ( string -- )
@ -31,9 +30,8 @@ LEFT-DECORATOR: recursive
left-decorators get in? ; left-decorators get in? ;
<< <<
SYMBOL: arities
! Initialize with : foo ( -- ) .. ; already ! Initialize with : foo ( -- ) .. ; already
arities [ H{ } clone 2 "" pick set-at ] initialize INITIALIZED-SYMBOL: arities [ H{ } clone 2 "" pick set-at ]
>> >>
<< <<
: make-arity ( n string -- ) : make-arity ( n string -- )
@ -82,8 +80,7 @@ ARITY: \: 2
arities get at ; arities get at ;
<< <<
SYMBOL: variable-arities INITIALIZED-SYMBOL: variable-arities [ H{ } clone ]
variable-arities [ H{ } clone ] initialize
>> >>
<< <<
: make-variable-arity ( n string -- ) : make-variable-arity ( n string -- )
@ -399,4 +396,4 @@ M: object fixup-arity ;
: postprocess-modern ( seq -- seq' ) : postprocess-modern ( seq -- seq' )
collapse-decorators [ fixup-arity ] map flatten ; collapse-decorators [ fixup-arity ] map flatten ;
]] ]]

View File

@ -9,8 +9,7 @@ IN: robots
! visit-time is GMT, request-rate is pages/second ! visit-time is GMT, request-rate is pages/second
! crawl-rate is seconds ! crawl-rate is seconds
SYMBOL: robot-identities INITIALIZED-SYMBOL: robot-identities [ { "FactorSpider" } ]
robot-identities [ { "FactorSpider" } ] initialize
TUPLE: robots site sitemap rules rules-quot ; TUPLE: robots site sitemap rules rules-quot ;

View File

@ -3,8 +3,7 @@
USING: smtp namespaces accessors kernel arrays site-watcher.db ; USING: smtp namespaces accessors kernel arrays site-watcher.db ;
IN: site-watcher.email IN: site-watcher.email
SYMBOL: site-watcher-from INITIALIZED-SYMBOL: site-watcher-from [ "factor-site-watcher@gmail.com" ]
site-watcher-from [ "factor-site-watcher@gmail.com" ] initialize
: send-site-email ( watching-site body subject -- ) : send-site-email ( watching-site body subject -- )
[ account>> email>> ] 2dip [ account>> email>> ] 2dip

View File

@ -3,9 +3,7 @@
USING: kernel namespaces assocs accessors words sequences classes.tuple ; USING: kernel namespaces assocs accessors words sequences classes.tuple ;
IN: smalltalk.classes IN: smalltalk.classes
SYMBOL: classes INITIALIZED-SYMBOL: classes [ H{ } clone ]
classes [ H{ } clone ] initialize
: create-class ( class -- class ) : create-class ( class -- class )
"smalltalk.classes" create-word ; "smalltalk.classes" create-word ;

View File

@ -6,9 +6,9 @@ io.sockets.secure fry oauth1 urls ;
IN: twitter IN: twitter
! Configuration ! Configuration
SYMBOLS: twitter-source twitter-consumer-token twitter-access-token ; INITIALIZED-SYMBOL: twitter-source [ "factor" ]
twitter-source [ "factor" ] initialize SYMBOLS: twitter-consumer-token twitter-access-token ;
<PRIVATE <PRIVATE