User Tools

Site Tools


zigpointers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
zigpointers [2019/08/21 16:40] – created donpdonpzigpointers [2024/01/31 04:08] (current) – external edit 127.0.0.1
Line 2: Line 2:
 #zig 2019-08-20 #zig 2019-08-20
  
 +
 +<code>
 15:57 donpdonp sorry if this is only partial information - ive got for(mySlice) |thing| { var newOtherThing = OtherThing.init(allocator); warn("otherThing {*}\n", &newOtherThing); } 15:57 donpdonp sorry if this is only partial information - ive got for(mySlice) |thing| { var newOtherThing = OtherThing.init(allocator); warn("otherThing {*}\n", &newOtherThing); }
 15:58 donpdonp and I get 'OtherThing()@7ffd5d02efb0' 'OtherThing()@7ffd5d02efb0' 'OtherThing()@7ffd5d02efb0' all the same address 15:58 donpdonp and I get 'OtherThing()@7ffd5d02efb0' 'OtherThing()@7ffd5d02efb0' 'OtherThing()@7ffd5d02efb0' all the same address
Line 240: Line 242:
 17:18 Tetralux Making progress :p 17:18 Tetralux Making progress :p
 17:20 donpdonp well thats enough Zig for today. thx again Tetralux, andrewrk for helping me level-up in zig. 17:20 donpdonp well thats enough Zig for today. thx again Tetralux, andrewrk for helping me level-up in zig.
- +</code>
  
 * Other interesting bits * Other interesting bits
zigpointers.1566405625.txt.gz · Last modified: 2024/01/31 04:08 (external edit)