Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I want an array of foos, but (make-array 10 :initial-element (make-foo)) causes strange bugs. Why?

array bugs causes foos Strange
0
Posted

I want an array of foos, but (make-array 10 :initial-element (make-foo)) causes strange bugs. Why?

0

Well, the array created above contains 10 pointers to the same foo, which will indeed cause strange bugs.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.