"import" imports both .c files and .d files while they can be named the same.This is a problem.
In addition, during the import .c files compiler acts a little differently. Why not make the different behaviors explicit?
Thread overview | ||||||
---|---|---|---|---|---|---|
|
March 24 For the ImportC feature, one must use the keyword "importC" instead of "import" | ||||
---|---|---|---|---|
| ||||
March 30 Re: For the ImportC feature, one must use the keyword "importC" instead of "import" | ||||
---|---|---|---|---|
| ||||
Posted in reply to Илья | On Sunday, 24 March 2024 at 08:48:43 UTC, Илья wrote: >"import" imports both .c files and .d files while they can be named the same.This is a problem. I think |
April 02 Re: For the ImportC feature, one must use the keyword "importC" instead of "import" | ||||
---|---|---|---|---|
| ||||
Posted in reply to IchorDev | On Saturday, 30 March 2024 at 14:28:23 UTC, IchorDev wrote: >On Sunday, 24 March 2024 at 08:48:43 UTC, Илья wrote: >"import" imports both .c files and .d files while they can be named the same.This is a problem. I think The syntax with parenthesis is used for loading any kind of file with string import paths. I know that they used to have a syntax validation for |
April 03 Re: For the ImportC feature, one must use the keyword "importC" instead of "import" | ||||
---|---|---|---|---|
| ||||
Posted in reply to Hipreme | On 4/2/2024 10:17 AM, Hipreme wrote:
> But I do agree that importing C files the same way as D it is quite bizarre.
The purpose of the design is so that the importer need not know how the module is implemented.
|