In this video i talk about Reference Objects, what they are, their use cases and a brief talk about Nim's memory management model. Chapters/sub chapters of this video:
What are reference objects ?
Reference object definition
"repr" procedure for outputting advanced data types
Dereferencing a reference object
Reference objects are passed by reference
new() procedure for reference types
Reference object use cases
Shared ownership
Nim's memory management
Values created on the stack
Values created on the heap
.acyclic and .cursor annotations for optimization(just a mention)
Name: Nim for Beginners #26 Reference Objects
Author: Kiloneie
In this video i talk about Reference Objects, what they are, their use cases and a brief talk about Nim's memory management model. Chapters/sub chapters of this video:
What are reference objects ? Reference object definition "repr" procedure for outputting advanced data types Dereferencing a reference object Reference objects are passed by reference new() procedure for reference types
Reference object use cases Shared ownership
Nim's memory management Values created on the stack Values created on the heap .acyclic and .cursor annotations for optimization(just a mention)
Video link: https://youtu.be/kkSAVKKIoVc