« first day (2551 days earlier)      last day (1229 days later) » 

1:49 AM
0
Q: Using TAB to move between fields in Red language

rnsoI have following simple code: Red [] view [ text "Value of x:" f1: field "" return text "Value of y:" f2: field "" return text "Read Sum:" tt: text "" return button "Calculate" [ tt/text: to-string ((to-integer f1/text) + (to-integer f2/text)) ] button "Quit...

 
RETURN is such a piece of garbage separator. They really should switch to using |.
[ a b | c d ] vs. [ a b return c d ], there's just no competition.
@giuliolunati Does the stack overflow detection work on emscripten? :-/ I do not know how emscripten simulates C stacks, but is it laying them out in an array where addressing is sequentially up or down?
 
 
1 hour later…
3:21 AM
Hi guys, I'm back again
 
 
4 hours later…
7:15 AM
You can browse the web from within emulated Windows 3.1 inside a browser.
 
 
4 hours later…
11:20 AM
0
A: Using TAB to move between fields in Red language

sqlabaccording gitter archive handle-key: function [e prev-fld next-fld][ k: e/key if k = tab [ either e/shift? [win/selected: prev-fld][win/selected: next-fld] ] ] view [ text "Value of x:" f1: field "" on-key [handle-key event tt f2] return text "Value of y:" f2: fiel...

 
 
4 hours later…
3:46 PM
0
Q: How to use tab to move in a list of fields in Red language

rnsoThis is similar to my earlier question ( Using TAB to move between fields in Red language ). Since I have many fields, I want to use a list of fields. However, following code is not working: Red [] view [ text "Value of x:" f1: field "" on-key [handle-key event] return text "Value of ...

 
 
4 hours later…
8:04 PM
posted on October 25, 2017 by @hostilefork Brian Dickens

@hostilefork wrote: Given that append block [] will append nothing (you have to use APPEND/ONLY), and append block () will append nothing (the void evaluation product is not legal to put in blocks, so the assumption is you meant no-op), I am wondering about append block _. block: copy [a b c d] append block any [false false false] Do you usually want

 
8:35 PM
@MarkI If you want a thought experiment, you might think about how the scanner could be adjusted to take a variadic list of strings and values to embed. So you could give it "compose [(", value1, ") 10", value2, "]", END and have it properly splice the structure.
So where it gets a char* today, imagine it getting a va_list where it can distinguish REBVAL pointers from UTF-8 strings (because... it can... due to magic).
I almost think this C-based trick is maybe even more interesting than its RenCpp counterpart. And I don't suspect it will be that difficult to do.
Fascinatingly we can tell all Rebol types and UTF-8 strings apart. I was even thinking that we might expose a "context view" in the API as an opaque REBSER node, and then if you see an ANY-CONTEXT! as a REBVAL* then you assume people mean it literally, but if you see it as a REBSER* while running along the va_list then you switch so that subsequent strings are bound into that context.
 

« first day (2551 days earlier)      last day (1229 days later) »