Hi,
I was wondering, if there is a way to pass a macro with value to the
compiled program, i.e., something like -Dfoo="bar". And if that is not
possible, if there is a way to enumerate all set versions.
I want my application built with different string imported
configurations and I have no idea h
Dne 7.3.2017 v 22:36 Adam D. Ruppe via Digitalmars-d-learn napsal(a):
> The way I like to do it is to pass a module on the command line that
> contains the custom config. So in the app:
>
> ---
> import myapp.config;
>
> // use the variables defined in there like normal
> ---
>
>
> Now, to defi
Hi,
I am struggling to use a lazy range-based code to process large text
files. My task is simple, i.e., I can write a non-range-based code in a
really short time, but I wanted to try different approach and I am
hitting a wall after wall.
Task: read a csv-like input, take only lines starting with
Dne 2.8.2017 v 14:11 Daniel Kozak via Digitalmars-d-learn napsal(a):
> import std.stdio;
> import std.algorithm;
>
> void main()
> {
>
>
> auto input = ["... some text, another text", "some,another","...so,an"];
>
> auto result = input.filter!(a => a.startsWith("..."))
> .map!(a=>a.s
Dne 2.8.2017 v 14:45 Steven Schveighoffer via Digitalmars-d-learn napsal(a):
> The problem is that you are 2 ranges deep when you apply splitter. The
> result of the map is a range of ranges.
>
> Then when you apply stringStripleft, you are applying to the map result,
> not the splitter result.
>
Dne 6.1.2015 v 18:15 FrankLike via Digitalmars-d-learn napsal(a):
> How to prevent sensitive information is displayed when the extension
> 'exe' is modified to 'txt' on windows?
>
> If you build a exe ,such as which can get Data from DataBase,when you
> modify the exe's extension to 'txt',
> and
Dne 6.1.2015 v 22:25 Suliman via Digitalmars-d-learn napsal(a):
> On Tuesday, 6 January 2015 at 21:19:38 UTC, bearophile wrote:
>> Suliman:
>>
>>> void foo()
>>> {
>>> writeln("test");
>>> writeln(mystring);
>>> }
>>> foo(); <
>>> }
>>
>> I guess you have to remove tha
Dne 7.1.2015 v 12:00 Laeeth Isharc via Digitalmars-d-learn napsal(a):
>
>>
>> What you want is some kind of code obfuscation. The easiest thing for
>> you is to use exe compression. It is not going to stop a dedicated
>> attacker, but ordinary people will not be able to extract any
>> information