Parse File at compile time, but not embedded

Joerg Joergonson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 9 15:02:44 PDT 2016


On Tuesday, 7 June 2016 at 22:09:58 UTC, Alex Parrill wrote:
> On Monday, 6 June 2016 at 21:57:20 UTC, Pie? wrote:
>> On Monday, 6 June 2016 at 21:31:32 UTC, Alex Parrill wrote:
>>> [...]
>>
>> Not necessarily, You chased that rabbit quite far! The data 
>> your reading could contain sensitive information only used at 
>> compile time and not meant to embed. For example, the file 
>> could contain login and password to an SQL database that  you 
>> then connect, at compile time and retrieve that information 
>> the disregard the password(it is not needed at run time).
>
> Accessing a SQL server at compile time seems like a huge abuse 
> of CTFE (and I'm pretty sure it's impossible at the moment). 
> Why do I need to install and set up a MySQL database in order 
> to build your software?

Lol, who says you have access to my software? You know, the 
problem with assumptions is that they generally make no sense 
when you actually think about them.


More information about the Digitalmars-d-learn mailing list