www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [enhancement] Another error code for std.syserror

reply "Matthew" <admin stlsoft.dot.dot.dot.dot.org> writes:
     case 123: result = "invalid name"; break;
Jan 27 2005
parent reply "Regan Heath" <regan netwin.co.nz> writes:
On Fri, 28 Jan 2005 10:03:23 +1100, Matthew  
<admin stlsoft.dot.dot.dot.dot.org> wrote:
      case 123: result = "invalid name"; break;
Or instead of adding errors as you find them you could simply use the attached code. Regan
Jan 27 2005
parent reply "Matthew" <admin stlsoft.dot.dot.dot.dot.org> writes:
"Regan Heath" <regan netwin.co.nz> wrote in message 
news:opslacfpe123k2f5 ally...
 On Fri, 28 Jan 2005 10:03:23 +1100, Matthew
 <admin stlsoft.dot.dot.dot.dot.org> wrote:
      case 123: result = "invalid name"; break;
Or instead of adding errors as you find them you could simply use the attached code.
Sure, but what about ERROR_NOT_ENOUGH_MEMORY?
Jan 27 2005
parent reply "Regan Heath" <regan netwin.co.nz> writes:
On Fri, 28 Jan 2005 11:31:09 +1100, Matthew  
<admin stlsoft.dot.dot.dot.dot.org> wrote:
 "Regan Heath" <regan netwin.co.nz> wrote in message
 news:opslacfpe123k2f5 ally...
 On Fri, 28 Jan 2005 10:03:23 +1100, Matthew
 <admin stlsoft.dot.dot.dot.dot.org> wrote:
      case 123: result = "invalid name"; break;
Or instead of adding errors as you find them you could simply use the attached code.
Sure, but what about ERROR_NOT_ENOUGH_MEMORY?
Good point. We can simply add a special case static string for that, right? Attached. Regan
Jan 27 2005
parent "Matthew" <admin stlsoft.dot.dot.dot.dot.org> writes:
"Regan Heath" <regan netwin.co.nz> wrote in message 
news:opslae9qfh23k2f5 ally...
 On Fri, 28 Jan 2005 11:31:09 +1100, Matthew
 <admin stlsoft.dot.dot.dot.dot.org> wrote:
 "Regan Heath" <regan netwin.co.nz> wrote in message
 news:opslacfpe123k2f5 ally...
 On Fri, 28 Jan 2005 10:03:23 +1100, Matthew
 <admin stlsoft.dot.dot.dot.dot.org> wrote:
      case 123: result = "invalid name"; break;
Or instead of adding errors as you find them you could simply use the attached code.
Sure, but what about ERROR_NOT_ENOUGH_MEMORY?
Good point. We can simply add a special case static string for that, right? Attached.
Agreed. :-)
Jan 27 2005