loadLibrary string

Jonathan M Davis jmdavisProg at gmx.com
Sat Jun 1 14:05:24 PDT 2013


On Saturday, June 01, 2013 22:23:22 =?UTF-8?B?Ikx1w61z?=.Marques 
<luismarques at gmail.com>@puremagic.com wrote:
> On Saturday, 1 June 2013 at 20:20:14 UTC, David Nadlinger wrote:
> > There is no head const in D.
> 
> So is having an "in char[]" the same as having an
> immutable(char)[] / string?

"in char" is equivalent to "scope const char[]". The scope does not currently 
have any effect, but by having const char[], char[], const(char)[], and 
immutable(char)[] can all be passed to the loadLibrary, whereas if it accepted 
string, then only immutable(char)[] could be passed to it.

- Jonathan M Davis


More information about the Digitalmars-d mailing list