V (programming language): Difference between revisions

Content deleted Content added
m Correction of spacing in example for consistency
m Spaces removed in struct examples to be consistent with documentation, books on subject, and to prevent confusion
Line 99:
 
// or by position
var2 := Foobar {50, "qux", 3.14}
</syntaxhighlight>
 
Line 116:
 
// Structs that are referenced are heap allocated
var1 := &Foo {2}
 
// Bar is always heap allocated because of its [heap] attribute
var2 := Bar {4.5}
 
</syntaxhighlight>