|
From: Tim R. <ti...@su...> - 2004-11-24 03:08:21
|
I'd like to improve the safety of the writing the image name; currently the slang code for primitiveImageName merely assumes success in writing absolutely anything you pass it. Since (so far as I can see) all platforms have a practical maximum path length it seems like a good thing to be able to return an indication as to whether the string was truly acceptable - size, illegal chars, plausible path, whatever suits the platform. Right now all four main platforms do something different:- Acorn returns flase if the string cannot be canonicalised as a filename but returns default if ok! Mac returns the lesser of allowable image name size and actual length Unix returns the same Windows returns 1. Can we agree that returning something uniform (say 0) to indicate that the prim should fail is a good idea? I'd like to make this a 3.8 thing if possible. tim -- Tim Rowledge, ti...@su..., http://sumeru.stanford.edu/tim Oxymorons: Legally drunk |