# better handling of lazy structs · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/ac4dd9d665ba195a6b21b3b033f27c865015ccac)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: ac4dd9d665ba195a6b21b3b033f27c865015ccac

Requested commit: ac4dd9d665ba195a6b21b3b033f27c865015ccac

Commit: ac4dd9d665ba195a6b21b3b033f27c865015ccac

Tree: d3ae7db58ea39d073eda0fe70a9058f66cdebce3

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

````
better handling of lazy structs

this case works now:

```zig
const A = struct {
    b_list_pointer: *const []B,
};
const B = struct {
    a_pointer: *const A,
};

const b_list: []B = [_]B{};
const a = A{ .b_list_pointer = &b_list };
const obj = B{ .a_pointer = &a };
```

````

## Parents

- [be0a9a72772566667d4c225972c6bc7c17b751ef](https://git.cafe/gitcafe/zig/commit/be0a9a72772566667d4c225972c6bc7c17b751ef?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/ac4dd9d665ba195a6b21b3b033f27c865015ccac?format=markdown)
