Re: [racket-users] Vectors, boxes and places

2022-02-03 Thread Tim Jervis
Many thanks John, I’ve just posted it there.

Tim

> On 3 Feb 2022, at 23:17, 'John Clements' via Racket Users 
>  wrote:
> 
> Sounds like a good question to me. Perhaps it would make sense to post it to 
> the discourse group, instead? I’m happy to ask on your behalf if you don’t 
> feel like it.
> 
> https://racket.discourse.group/
> 
> John
> 
>> On Feb 3, 2022, at 5:58 AM, Tim Jervis  wrote:
>> 
>> Dear Racketeers,
>> 
>> Is there something I have misunderstood about vectors, boxes and places 
>> which might explain why immutable boxes are not place-message-allowed, but 
>> immutable vectors are?
>> 
>>> (place-message-allowed? (box-immutable #f))
>> #f
>>> (place-message-allowed? (vector-immutable #f))
>> #t
>>> 
>> 
>> c.f.
>> 
>> https://docs.racket-lang.org/reference/boxes.html 
>> 
>> A box is like a single-element vector, normally used as minimal mutable 
>> storage.
>> 
>> Best,
>> 
>> Tim
>> 
>> -- 
>> 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/878F140E-3160-4B88-BB8B-4C04B1668BCB%40timjervis.com.
> 
> -- 
> 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/3b47b917-cbd6-48f2-8def-b71e396f5d63%40mtasv.net.

-- 
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/C3D7BA4A-FCEA-419C-AD16-DD267254984A%40timjervis.com.


Re: [racket-users] Vectors, boxes and places

2022-02-03 Thread 'John Clements' via Racket Users
Sounds like a good question to me. Perhaps it would make sense to post it to 
the discourse group, instead? I’m happy to ask on your behalf if you don’t feel 
like it.

https://racket.discourse.group/

John

> On Feb 3, 2022, at 5:58 AM, Tim Jervis  wrote:
> 
> Dear Racketeers,
> 
> Is there something I have misunderstood about vectors, boxes and places which 
> might explain why immutable boxes are not place-message-allowed, but 
> immutable vectors are?
> 
> > (place-message-allowed? (box-immutable #f))
> #f
> > (place-message-allowed? (vector-immutable #f))
> #t
> > 
> 
> c.f.
> 
> https://docs.racket-lang.org/reference/boxes.html 
> 
> A box is like a single-element vector, normally used as minimal mutable 
> storage.
> 
> Best,
> 
> Tim
> 
> -- 
> 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/878F140E-3160-4B88-BB8B-4C04B1668BCB%40timjervis.com.

-- 
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/3b47b917-cbd6-48f2-8def-b71e396f5d63%40mtasv.net.


[racket-users] Vectors, boxes and places

2022-02-03 Thread Tim Jervis
Dear Racketeers,

Is there something I have misunderstood about vectors, boxes and places which 
might explain why immutable boxes are not place-message-allowed, but immutable 
vectors are?

> (place-message-allowed? (box-immutable #f))
#f
> (place-message-allowed? (vector-immutable #f))
#t
> 

c.f.

https://docs.racket-lang.org/reference/boxes.html 
 

A  <>box is like a single-element vector, normally used as minimal mutable 
storage.

Best,

Tim

-- 
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/878F140E-3160-4B88-BB8B-4C04B1668BCB%40timjervis.com.