A linked list, for example, consists of pointers to pointers to pointers...

Why should any limit exist to the length of the list except resources
available?

On Thu, Mar 10, 2022, 03:59 shan...@gmail.com <shane....@gmail.com> wrote:

> This morning someone asked about dereferincing a pointer to a pointer to a
> pointer
>
> At first nobody had ever thought about, let alone knew the answer, but
> some example code was shown, and sure enough ***val is possible
> ```
> package main
>
> import "fmt"
>
> func main() {
>         a := 0
>         b := &a
>         c := &b
>         UltimatePointOne(&c)
>         fmt.Println(a)
> }
>
> func UltimatePointOne(n ***int) {
>         ***n = 1
> }
> ```
>
>
> On a lark a go playground example was tried to find what the maximum * is
> in Go
>
> https://go.dev/play/p/YhibY3p7TSD
>
> There's 28 there, but it's not the limit
>
> Does anyone know what the upper bound on this could be?
>
> 256 * ?
>
> 32k * ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/60cf1568-31d3-426e-bfdc-0b4b98b53acdn%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/60cf1568-31d3-426e-bfdc-0b4b98b53acdn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAA40n-WZwmcC6aVyvO3H42c9WeuL%2BPEimApdOPgR20cS_nPU%2Bw%40mail.gmail.com.

Reply via email to