Unique vs. shared return values

bearophile bearophileHUGS at lycos.com
Thu Feb 2 16:31:42 PST 2012


Ali:

> - either a slice of the entire input string when the field is shorter 
> than the string (this is an optimization)

> [A side question is whether leftJustify() should throw when the field 
> width is shorter than the string.

When the field width is shorter than the input string the three justify functions just don't add whitespace. So they are nothrow.

Bye,
bearophile


More information about the Digitalmars-d mailing list