From: D. R. H. <dr...@hw...> - 2000-09-01 20:33:17
|
Jeffrey Hobbs wrote: > > For that reason I think the need for a non-panic'ing alloc still exists. > Tcl_SafeAlloc perhaps? > I want to take issue with the name. When I hear "SafeAlloc()" I think of a malloc() that never returns NULL. In other words, it is "safe" to use without checking the return type. Your usage completely inverts that meaning. 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. -- D. Richard Hipp -- dr...@hw... -- http://www.hwaci.com/drh/ -- The TclCore mailing list is sponsored by Ajuba Solutions To unsubscribe: email tcl...@aj... with the word UNSUBSCRIBE as the subject. |