User Tools

Site Tools


zigpointers

Differences

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

Link to this comparison view

zigpointers [2019/08/21 09:40]
donpdonp created
zigpointers [2019/08/21 09:42] (current)
donpdonp
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.txt · Last modified: 2019/08/21 09:42 by donpdonp