Search
Friday, 17th of January 2020, 3:39:08 UTC
5:02:47
beach
Good morning everyone!
13:33:42
beach
Hello phoe. What channel would be appropriate for my asking you a question about CCL breakpoints?
14:16:33
Bike
http://ix.io/27E6/cpp here's what i'm doing. at my wit's end here, need more eyes.
14:17:19
drmeister
Hi - what is the problem?
14:18:21
Bike
i wrote a replacement system to do call-with-variable-bound but it does no actual binding.
14:19:16
drmeister
Back in a few minutes - need to catch a train.
14:22:13
Bike
but yeah so for example (core:call-with-variable-bound '*whatever* 0 (lambda () (boundp '*whatever*))) => T, but (core:cwvb-test '*whatever* 0 (lambda () (boundp '*whatever*))) => NIL
14:28:34
drmeister
We got back to Philadelphia late last night. I'm heading in to work.
14:34:41
drmeister
I don't understand line 99 - you reference 'this' outside of a method.
14:35:38
drmeister
Is this real code that is running?
14:36:01
Bike
the "in class Symbol_O" comment means this is part of the definition of the Symbol_O class
14:36:10
Bike
and yes, it compiles and runs
14:37:28
Bike
the underlying difference is that the existing code looks up the global value and stores that in the old value storage, whereas mine just grabs the _NoThreadLocalBinding<T_O> from the thread local storage, and never touches the global value
14:38:18
drmeister
Let me get in to work and we will look this over.
14:39:34
drmeister
Where is _NoThreadLocalBinding<T_O>() defined?
14:41:15
Bike
um, i don't know. gctools somewhere. that's not new code.
14:41:53
drmeister
Is that something I defined?
14:42:15
Bike
it's the object that goes in the thread local storage if there are no bindings.
14:49:04
Bike
its nature shouldn't be directly relevant, i don't think, but then again i don't understand why this isn't working, so who knows
14:49:12
drmeister
The code looks fine. Start sticking in printf statements.
14:49:50
Bike
i did. as far as i can tell everything is running.
14:50:05
Bike
i mean, "as far as i can tell" except in that it doesn't seem to do anything
14:50:21
drmeister
After line 141 - the binding_index and after line 125 - the memory that you just wrote to.
14:51:41
drmeister
Make sure it does the thing you want it to do right after you do it.
15:08:18
Bike
well it says it's setting the value as i'd expect.
15:08:25
Bike
Maybe it's somehow using a different index??
Friday, 17th of January 2020, 15:39:08 UTC