a62690705

Results 9 issues of a62690705

### Bug description ```mojo def func(borrowed y: Int) -> borrowed Int: return y def main(): var x: Int = 1 var ref = func(x) print(ref) ``` / ```mojo Compile error:...

bug
mojo-lang
mojo

### Bug description ```mojo struct S: var x: Int var y: Int fn __init__(inout self, a: Int, b: Int): self.x = a self.y = b print("address_of a :", Pointer.address_of(a)) print("address_of...

bug
mojo-lang
mojo

### Review Mojo's priorities - [X] I have read the [roadmap and priorities](https://docs.modular.com/mojo/roadmap.html#overall-priorities) and I believe this request falls within the priorities. ### What is your request? ```python type() function...

enhancement
mojo-lang
mojo

### Review Mojo's priorities - [X] I have read the [roadmap and priorities](https://docs.modular.com/mojo/roadmap.html#overall-priorities) and I believe this request falls within the priorities. ### What is your request? Open source tensor...

enhancement
mojo-stdlib
mojo

### Bug description Mojo's ownership system assumes that when ownership of a value is transferred from one variable to another, the value is not actually moved from memory, but rather...

bug
mojo-lang
mojo

### Where is the problem? There is no explanation for pointer ### What can we do better? Explain the different types of pointers and how to use them ### Anything...

documentation

### Bug description ```mojo def main(): var v = 8 var ptr = Pointer[Int](v) print(ptr) Output 0x8 ``` The location of the variable v was supposed to be printed in...

bug
mojo

### Review Mojo's priorities - [X] I have read the [roadmap and priorities](https://docs.modular.com/mojo/roadmap.html#overall-priorities) and I believe this request falls within the priorities. ### What is your request? Support Intel GPU...

enhancement
mojo

### Where is the problem? https://docs.modular.com/mojo/stdlib/collections/optional ### What can we do better? ```mojo from collections.optional import Optional def main(): var a = Optional(1) var b = Optional[Int](None) if a: print(a.value())...

documentation