My understanding is that you can shadow `foo`, but you cannot use `foo` in any 
expression at the same scope where the struct's bindings appear. In this 
context, some of `foo`'s lexical information is reserved so that `struct-out` 
works correctly.

On 6/3/21 5:01 PM, flirora wrote:

> Am I correct in assuming that given a definition like
>
> (struct foo (x) #:constructor-name bar)
>
> I then can't define something named foo in the same module, even though 
> there's no constructor called foo?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> [https://groups.google.com/d/msgid/racket-users/02598ee4-4461-4815-bd4f-a8ac02c1118cn%40googlegroups.com](https://groups.google.com/d/msgid/racket-users/02598ee4-4461-4815-bd4f-a8ac02c1118cn%40googlegroups.com?utm_medium=email&utm_source=footer).

--
~slg

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/76c51dda-b80d-d74a-c691-d92fe11008e8%40sagegerard.com.

Reply via email to