On 09/24/2016 10:14 AM, Basile B. wrote:
> When the file is specified, Shouldn't #line create a new module ?
> 
> ===========
> module m;
> 
> int a;
> 
> #line 0 "other.d"
> 
> int a;
> ===========
> 
> Currently this is not allowed, but what's the value added by the
> filename then ?

It was used to easier debug string mixins by changing their filename in
reported errors. Now it is done by compiler by default and I don't know
if any other use case remains.

But is definitely is not intended to create a new module, D relies on
strict 1-to-1 matching between files and modules.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to