mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: rename [ref_only]
-> [heap]
(#8718)
This commit is contained in:
@ -3866,8 +3866,9 @@ fn old_function() {
|
||||
fn inlined_function() {
|
||||
}
|
||||
|
||||
// The following struct can only be used as a reference (`&Window`) and allocated on the heap.
|
||||
[ref_only]
|
||||
// The following struct must be allocated on the heap. Therefore, it can only be used as a
|
||||
// reference (`&Window`) or inside another reference (`&OuterStruct{ Window{...} }`).
|
||||
[heap]
|
||||
struct Window {
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user