From: Jim I. <ji...@ap...> - 2000-09-01 19:16:21
|
On Friday, September 1, 2000, at 11:45 AM, Scott Stanton wrote: > > "D. Richard Hipp" said: > > Perhaps Tcl_TryToAlloc() or Tcl_AttemptAlloc() > > instead. Here the idea is "try to get me some > > memory but its OK if you can't, just let me know." > > This will be (I think) a seldom used function, > > so a longer name is not a handicap. > > The existing TclpAlloc could be the right way to handle this. It is > usually just a wrapper around malloc() on Unix, so if we fixed the Tcl > allocator to avoid panics (as George suggested), then on all platforms it > would return NULL on allocation failures. Then the outer Tcl_Alloc call > can implement the guarantee never to return NULL. > The only problem with this is that we would then be making a "p" routine part of the public Tcl API's. I am not sure what the thinking on this is. Jim > --Scott > > > -- > The TclCore mailing list is sponsored by Ajuba Solutions > To unsubscribe: email tcl...@aj... with the > word UNSUBSCRIBE as the subject. > > -- Jim Ingham ji...@ap... Developer Tools - gdb Apple Computer -- The TclCore mailing list is sponsored by Ajuba Solutions To unsubscribe: email tcl...@aj... with the word UNSUBSCRIBE as the subject. |