~benthor

Trackers

~benthor/treehouse

Last active 1 year, 4 months ago

#1 Fix https forwarding 1 year, 4 months ago

todo added by ~benthor on ~benthor/treehouse

#1 Fix https forwarding 1 year, 4 months ago

Ticket created by ~benthor on ~benthor/treehouse

It's disabled on master. Either update the README and remove mention of the feature or reenable it again

#721 tutorial: wrong example for array without bounds check 2 years ago

Ticket created by ~benthor on ~sircmpwn/hare

The example for array declaration without bounds check in the Introduction tutorial is broken.

It says:

To disable bounds checking, use * in place of the array length:

let x: [*]int = [1, 2, 3];
x[4]; // Undefined behavior!

This ignores that you can only pass around a pointer to an array with undefined size, so you can only declare it in terms of such a pointer:

let x: *[*]int = &[1, 2, 3];