« first day (3567 days earlier)      last day (213 days later) » 

2:20 AM
>> do [defer [print "a"] print "Hello!" defer [print "b"] print "Deferred World!"]
Hello!
Deferred World!
b
a
3
 
2:48 AM
If you wanted to attach deferrals to a particular "scope" I guess that could be done as defer: deferrer-here | if true [if true [if true [...arbitrary nesting... defer [...] ...], where you had some sort of "deferrer generator" that in spite of your nesting level would associate the deferral with the frame where the generator was invoked.
That said, latching a DEFER to a RETURN is kind of a semi-sane "pun". defer/when [...your code...] 'return The RETURN is bound to the frame of the function you're in most of the time, so you can get the frame that is exiting (normally or abnormally) from it.
 
 
1 hour later…
4:01 AM
>> catch [defer [print "a"] print "What about throwing?" defer [print "b"] throw <Whoa!> print "Unreachable"]
What about throwing?
b
a
== <Whoa!>
 
 
3 hours later…
6:47 AM
Success! It was rather a journey! Installing CentOS 7 in VBox on my Ubuntu. Because I used the installer I did not seem to have the VBoxguestAdditions.iso, but it apeared as if it already was installed, but it obv wasn't. So then I had to learn to mount the shared folder. And had to make that writable. When FTP using FileZilla, I have to shutdown the CentOS VM for else it cannot make a connection to the server.
But now finally the test on my webpage says "Foo" with the created RENC! Now to the next phase!
(But first to the swimming pool, it will be 30+ degrees Celcuis today, before it is too busy and they do not let more people in.)
 
 
6 hours later…
12:50 PM
@HostileForksaysdonttrustSE This is very cool.
This stuff is mind-bending to me. It's still rebol, but it's not the deep lake analogy... it's turning the body inside out so the guts are on the outside. In a good way. :)
 
 
8 hours later…
9:02 PM
@Edoc There's going to be a limit to the model, but it would suck if the limit were "you really can't do anything because nothing will work." Re-read motivation here. If you try to write something that's similar to a FOR-EACH and use FOR-EACH to do it, the RETURN problem might be solved...but if your body code uses names of things that the user picks as loop variables it won't work.
 
9:34 PM
But additional motivation is trying to do the -EACH iterations as stackless, and so might as well attack this issue while doing so.
 
 
1 hour later…
10:36 PM
posted on August 06, 2020 by @hostilefork Brian Dickens

@hostilefork wrote: Every imperative language has the problem of when you modify a data structure, you run the risk of confusing other code that is looking at that data structure at the same time. Whether it's threads competing for access, or just a loop whose body modifies the data being looped over...the problem comes up. The options for dealing with

 

« first day (3567 days earlier)      last day (213 days later) »