[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Src question




   X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-plt-scheme@flux.cs.utah.edu using -f
   Date: Mon, 23 Oct 2000 21:20:24 -0400
   From: Robert John Andersen <anderman@anderware.com>
   Reply-To: anderman@anderware.com
   Content-Type: text/plain; charset="iso-8859-1"
   Sender: owner-plt-scheme@fast.cs.utah.edu
   Precedence: bulk



   On Mon, 23 Oct 2000, Matthew Flatt wrote:
   >
   > I think you're overlooking the "*" in "sizeof(Scheme_Object *)".
   > 

   Yep, I totally missed that last *, thanks for the kick in the head :)

   Ever think about having a function like scheme_make_vector that doesn't
   take a fill?  I know for my cases that I am going to have to refill the
   vector with specific values and doing it twice doesn't buy me anything. 
   Unless I'm totally off the ball and missing something like the previous
   error :)

   RJA

That would make Scheme unsafe because someone could accidentally
dereference the vector before putting something in. 

I have heard of algorithms that use uninitialized vectors in
applied math and OR. But these things are rare and require
careful coding. What do you want to use it for? 

-- Matthias