better assertions and __FILE__ (char[] vs. string)

Deewiant deewiant.doesnotlike.spam at gmail.com
Fri Aug 17 01:05:39 PDT 2007


Bruce Adams wrote:
> Frank Benoit Wrote:
>> Bruce Adams schrieb:
>>> How do I get "foo" to be implicitly interpreted as char[] rather than
>>> char[3]. 
>> "foo"[]
> 
> Thanks. Where is that piece of syntactic sugar documented?
> 

http://www.digitalmars.com/d/arrays.html

"The [] is shorthand for a slice of the entire array."

-- 
Remove ".doesnotlike.spam" from the mail address.


More information about the Digitalmars-d-learn mailing list