#Can my function return a slice with only 1 heap-allocated variable?
1 messages · Page 1 of 1 (latest)
yes, you likely want to do (&self.active_window)[0..1]
thanks, I'll try it out
never tried that type of syntax before
sorry I forgot to clarify but self.active_window is a pointer *Window, not a literal variable Window.
i understand, and my answer accounts for that