Stephen Warren wrote: > On Mon, June 23, 2008 4:53 pm, Phil Dibowitz wrote: >> Because you didn't ask for an LH type. You asked for a standard type. >> Strings, ints, etc. I think are standard. > > The type of an object has absolutely nothing to do with how it was > allocated; to return a pointer, code could malloc() memory, return a > pointer to a static (global) object, mmap() something, and I'm sure there > are more examples.
Well, I was going to say "libc functions return char*s all the time"... but I can't find an example where it's not a pointer to a static string or something else similar that doesn't involve cleanup. Fair enough. -- Phil Dibowitz [EMAIL PROTECTED] Open Source software and tech docs Insanity Palace of Metallica http://www.phildev.net/ http://www.ipom.com/ "Never write it in C if you can do it in 'awk'; Never do it in 'awk' if 'sed' can handle it; Never use 'sed' when 'tr' can do the job; Never invoke 'tr' when 'cat' is sufficient; Avoid using 'cat' whenever possible" -- Taylor's Laws of Programming
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ concordance-devel mailing list concordance-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/concordance-devel