You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use case: I have two nested structs, and I want to ensure that one of their respective fields contains/points to the same object (i.e. EQ, not just EQL). Example C code:
typedef struct Foo {
int x;
} Foo;
typedef struct Bar {
Foo foo;
} Bar;
I want to create two Bar objects with EQfoo's. So in Lisp:
But of course this fails, because cl-autowrap doesn't support setting structs directly. It seems simple, but I cannot for the life of me figure out how to make this work. If there were a way to initializebar2 with a pre-existing foo, then I could work around the limitation to a large extent. I don't see a way though.
Are there any other workarounds for this?
The text was updated successfully, but these errors were encountered:
Use case: I have two nested structs, and I want to ensure that one of their respective fields contains/points to the same object (i.e.
EQ
, not justEQL
). Example C code:I want to create two
Bar
objects withEQ
foo
's. So in Lisp:But of course this fails, because cl-autowrap doesn't support setting structs directly. It seems simple, but I cannot for the life of me figure out how to make this work. If there were a way to initialize
bar2
with a pre-existingfoo
, then I could work around the limitation to a large extent. I don't see a way though.Are there any other workarounds for this?
The text was updated successfully, but these errors were encountered: