Originally posted by Weasel
View Post
Originally posted by Weasel
View Post
Originally posted by Weasel
View Post
Originally posted by Weasel
View Post
Originally posted by Weasel
View Post
Originally posted by Weasel
View Post
Originally posted by Weasel
View Post
Originally posted by Weasel
View Post
Code:
struct MyFunkyType { h : i32, u : f32 } fn build() -> MyFunkyType { MyFunkyType { h:32, u: 31.5} } fn main() { let MyFunkyType{h, u} = build(); println!("h={}, u={}", h, u) }
Compare that to C++l I.e. what does "a * b;" mean in C++? Does it declare the variable "b" of type "a*" or does it multiply the variables "a" and "b"? Who knows, you need to know the full context.
Comment