[Factor-talk] Namespaces and the UI

2011-06-14 Thread Fred Alger
Hey gang, I'm trying to get logging to work from my GUI application. I tried the obvious, which is: dystopian [ … open-window ] with-logging However, it seems that the UI window and gadgets all run in a new dynamic scope, and so the `logging-service` variable is unset and all logging calls

Re: [Factor-talk] db.tuples and boolean types

2011-06-14 Thread Fred Alger
How do you select-tuples from a db with a slot set to f? The help says that A SQL query is constructed from the slots of the exemplar tuple that are not f. So for example the following won't work: [ T{ book { sold f } } select-tuples ] with-books-db Do you have to use two slots, sold and

Re: [Factor-talk] Namespaces and the UI

2011-06-14 Thread Jon Harper
Is this a UI backend implementation detail?  Why (and where) does this new namespace and/or thread get created? I would guess that it's the start-ui-thread word from ui.private ? Regarding your namespace problem, is it ok to use global variables ? Jon

Re: [Factor-talk] db.tuples and boolean types

2011-06-14 Thread Tadhg O'Meara
I tried this and it seems that 0 is treated as t. I guess because 0 is not f. I think I might have to use an INTEGER instead of a BOOLEAN type and that way I can select for 0 and 1. Thanks. On 14 June 2011 16:15, Fred Alger f...@fredalger.net wrote: I haven't tried this, but you might try

Re: [Factor-talk] Namespaces and the UI

2011-06-14 Thread Fred Alger
On Tue, Jun 14, 2011 at 11:52 AM, Jon Harper jon.harpe...@gmail.com wrote: Is this a UI backend implementation detail?  Why (and where) does this new namespace and/or thread get created? I would guess that it's the start-ui-thread word from ui.private ? Aha, cool, I didn't find that. So when