V (programming language): Difference between revisions

Content deleted Content added
Jan200101 (talk | contribs)
Rewrite Structs and Heap structs examples from scratch with additional mention to initilization by name and by position as well as heap allocation via attribute.
m Correction of spacing in example for consistency
Line 119:
 
// Bar is always heap allocated because of its [heap] attribute
var2 := Bar {4.5}
 
</syntaxhighlight>