You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of Racket are you using?
8.11.1.10-2024-01-03-8ea7e0d830 [cs]
What program did you run?
#lang racket
(struct wrapped-list (content)
#:transparent)
(define (wrapped-cons v w-l)
(struct-copy wrapped-list w-l
[content (cons v (wrapped-list-content w-l))]))
What should have happened?
DrRacket should show 2 bound occurrences of the content field, and using the context menu to rename the field to e.g. value should work.
If you got an error message, please include it here.
DrRacket shows only 1 bound occurrence, the accessor function. Renaming changes only that occurrence, not the field name used with struct-copy, so the program breaks:
#lang racket
(struct wrapped-list (value)
#:transparent)
(define (wrapped-cons v w-l)
(struct-copy wrapped-list w-l
[content (cons v (wrapped-list-value w-l))]))
The text was updated successfully, but these errors were encountered:
What version of Racket are you using?
8.11.1.10-2024-01-03-8ea7e0d830 [cs]
What program did you run?
What should have happened?
DrRacket should show 2 bound occurrences of the
content
field, and using the context menu to rename the field to e.g.value
should work.If you got an error message, please include it here.
DrRacket shows only 1 bound occurrence, the accessor function. Renaming changes only that occurrence, not the field name used with
struct-copy
, so the program breaks:The text was updated successfully, but these errors were encountered: