« first day (3711 days earlier)      last day (69 days later) » 

8:54 AM
@rgchris I mentioned virtual binding was likely to lead to the need to rethink many things pertaining to issues like "class", here is a likely good avenue of attack for foundational problems.
 
posted on December 28, 2020 by hostilefork

The behavior of the following in historical Rebol/Red strikes me as extremely buggy: rule-ctx: [num: 1020] rule: [num 'foo] bind rule rule-ctx parse-obj: make object! compose [ rule: (rule) ; assume this is the non-splicing semantic run: method [data] [ parse data rule ] ... num: 304 ; imagine this is just an incidental field name ] The COM

3
 
 
7 hours later…
3:41 PM
@HostileForksaysdonttrustSE I do think the separation of concerns in creating objects is a good thing—the most obvious place where the current method creates problems is in defining the ACTOR object within a scheme (looks like an object, but typically isn't!). The ACTOR problem does raise questions of how one might self-refer to some fields within your object, but not others. It's a different issue from my CLASS proposal in which you want the contextual behaviour over X'000s of derivatives without the cost.
The ACTOR problem being creating an object of handlers with names that match the global verbs: actor: [helper: does [...stuff...] open: func [port][helper, open port/sub-port]] ; eek, wrong OPEN
Your proposal would solve that I believe: spec: [...], actor: make object! spec, bind spec difference words-of actor intersect words-of actor global-actor-words, do in/shallow/set spec
(do in/shallow/set actor spec for that last part)
Would with be a better fit than in?
 
4:19 PM
@rgchris IN binds words (and returns null if they're not there), and it's not clear what it would do with blocks if not virtual bind them. So that's good on an economy of words and also IN is rather short. I think that outweighs taking another word.
 
Ah, so it's not repurposing IN, just adding that capability?
 
@rgchris Replacing bind-mutating-mechanics on ANY-ARRAY! with non-mutating-bind-mechanics.
 
 
2 hours later…
6:32 PM
We have Brett's complex PARSING-AT mechanics to thank for some of the harder test cases for virtual binding so far... !
 

« first day (3711 days earlier)      last day (69 days later) »