Hi,everyone,
Is there anyone on the official website who is willing to submit
this? If you can submit, the development of D language is a good
thing.
"https://open.soft.360.cn/regist.php";
"link.exe" and "optlink.exe" found the Trojan virus:
--
On Saturday, 6 April 2019 at 03:24:04 UTC, FrankLike wrote:
Hi,everyone,...
Do you have some better code than this?
import std.stdio;
import std.socket;
void main()
{
testIPPort();
}
bool testIPPort()
{
try
Hi,everyone,
How to test that the IP port is reachable?
In C,you can do this like that, what should I do in D?
/* C Code*/
https://blog.csdn.net/zhangyingchuang/article/details/51957552
#include
#include
#include
#include
#include /* inet(3) functions */
#define bool int
#define false
On Wednesday, 30 January 2019 at 05:40:50 UTC, FrankLike wrote:
On Wednesday, 30 January 2019 at 05:14:20 UTC, Sobaya wrote:
I want to get a mangled name of a D function by
`core.demangle.mangle`, but I'm in trouble because there are
no ways to express a type of a function, which is used for a
On Wednesday, 30 January 2019 at 05:14:20 UTC, Sobaya wrote:
I want to get a mangled name of a D function by
`core.demangle.mangle`, but I'm in trouble because there are no
ways to express a type of a function, which is used for a
template argument of `mangle`.
For example, it is wrong to use
On Sunday, 27 January 2019 at 10:44:04 UTC, John Chapman wrote:
On Sunday, 27 January 2019 at 06:14:15 UTC, FrankLike wrote:
On Saturday, 26 January 2019 at 09:33:33 UTC, John Chapman
wrote:
What has that code got to do with setting the console's font?
So you need to add more code to accomp
On Saturday, 26 January 2019 at 09:33:33 UTC, John Chapman wrote:
What has that code got to do with setting the console's font?
So you need to add more code to accomplish that.
You don't need to set the font to achieve the goal, why not?
On Friday, 25 January 2019 at 16:14:56 UTC, Kagamin wrote:
also
http://blogs.microsoft.co.il/pavely/2009/07/23/changing-console-fonts/
That's so much code than next code!
/
extern(C) int setlocale(int,char*);
static this()
{
import core.stdc.wchar_;
On Friday, 25 January 2019 at 15:05:50 UTC, John Chapman wrote:
On Friday, 25 January 2019 at 14:23:15 UTC, FrankLike wrote:
I need to set the font by the code now, because I need to do
the installer, can't let this installer set the properties on
each computer?
SetCurrentConsoleFontEx perhap
On Friday, 25 January 2019 at 08:41:23 UTC, Kagamin wrote:
Create a shortcut to cmd.exe and edit its properties. The
console window itself has a system menu for this too.
I known that.
I need to set the font by the code now, because I need to do the
installer, can't let this installer set the
On Thursday, 24 January 2019 at 12:19:44 UTC, Kagamin wrote:
Try workarounds here:
https://issues.dlang.org/show_bug.cgi?id=1448
https://issues.dlang.org/show_bug.cgi?id=2742
How do I set the font? Please.
On Thursday, 24 January 2019 at 12:19:44 UTC, Kagamin wrote:
Try workarounds here:
https://issues.dlang.org/show_bug.cgi?id=1448
https://issues.dlang.org/show_bug.cgi?id=2742
Ok,thank you.
import std.stdio;
import core.sys.windows.windows;
import std.process:executeShell;
extern(Windows) bool
On Thursday, 24 January 2019 at 07:48:44 UTC, FrankLike wrote:
Hi,everyone,
for example:
import std.stdio;
import std.process:executeShell;
extern(C) int setlocale(int,char*);
static this()
{
import core.stdc.wchar_;
import core.stdc.stdio;
fwide(core.stdc.stdio.stdout
Hi,everyone,
for example:
import std.stdio;
import std.process:executeShell;
extern(C) int setlocale(int,char*);
static this()
{
import core.stdc.wchar_;
import core.stdc.stdio;
fwide(core.stdc.stdio.stdout,1);
setlocale(0,cast(char*)"china");
}
void main()
{
On Wednesday, 23 January 2019 at 14:12:09 UTC, Jonathan M Davis
wrote:
On Wednesday, January 23, 2019 5:42:55 AM MST FrankLike via
std.conv.to will allow you to convert between string and
wstring, but for calling C functions, you still need the
strings to be zero-terminated unless the functio
On Wednesday, 23 January 2019 at 10:44:51 UTC, Jonathan M Davis
wrote:
On Tuesday, January 22, 2019 2:49:00 PM MST bauss via
Digitalmars-d-learn wrote:
toUTFz is the generic solution. toStringz exists specifically
Error: template std.utf.toUTFz cannot deduce function from
argument types !()
On Tuesday, 22 January 2019 at 21:49:00 UTC, bauss wrote:
On Tuesday, 22 January 2019 at 19:14:43 UTC, Jonathan M Davis
Is there a reason we cannot implement toStringz like:
immutable(TChar)* toStringz(TChar = char)(scope const(TChar)[]
s) @trusted pure nothrow;
// Couldn't find a way to ge
On Tuesday, 22 January 2019 at 21:49:00 UTC, bauss wrote:
On Tuesday, 22 January 2019 at 19:14:43 UTC, Jonathan M Davis
Is there a reason we cannot implement toStringz like:
immutable(TChar)* toStringz(TChar = char)(scope const(TChar)[]
s) @trusted pure nothrow;
// Couldn't find a way to ge
On Tuesday, 22 January 2019 at 16:18:17 UTC, Adam D. Ruppe wrote:
Use "mystring"w, notice the w after the closing quote.
Or toStringz is not work like c_str() in C++?
On Tuesday, 22 January 2019 at 16:18:17 UTC, Adam D. Ruppe wrote:
Use "mystring"w, notice the w after the closing quote.
"GetDriveType" Function is auto work by "_T" in C++,but how to
do in D?
On Tuesday, 22 January 2019 at 16:13:57 UTC, FrankLike wrote:
On Tuesday, 22 January 2019 at 14:07:48 UTC, Olivier Pisano
wrote:
Some error is in "core.sys.windows.windows"?
Thank you.
On Tuesday, 22 January 2019 at 14:07:48 UTC, Olivier Pisano wrote:
On Tuesday, 22 January 2019 at 13:55:30 UTC, FrankLike wrote:
In D, there is only Unicode. The language doesn't manipulate
strings encoded in Windows local code-pages.
For example:
std::wstring strTest(_T("d://"));
UINT nR
Hi,everyone,
In C++, _T can guarantee that when converting from ascii
encoding type to unicode encoding type, the program does not need
to be modified. What do I need to do in D?
Thanks.
On Wednesday, 17 October 2018 at 13:50:03 UTC, Stanislav Blinov
wrote:
On Wednesday, 17 October 2018 at 13:48:04 UTC, FrankLike wrote:
What can I do?
Delete the bloatware that you downloaded.
Where can get the new dmd or ldc2 that's no 'Trojan horse virus' ?
Hi,teacher:
I like D lang,when I download the soft from
http://www.360totalsecurity.com/en/, but I find, the link.exe of
dmd or ldc2,all have the ‘Trojan horse virus’.
dmd.2.082.1.windows.7z:HEUR/QVM19.1.92C9.Malware.Gen
file MD5:91ce2a59f06151902a1f3fc49e0a4752
ldc2-7e9db717-window
On Sunday, 25 February 2018 at 15:38:31 UTC, FrankLike wrote:
Hi,everyone,
How to compile C++ and D code, and linking them together on
Windows ? I will use c++ function In D.
I use vs2010 c++ on Windows, What should I do?
For example:
1. create 2 files: C++.cpp D.d
2. I get the C++.obj fie
On Sunday, 25 February 2018 at 14:26:24 UTC, Arredondo wrote:
On Friday, 23 February 2018 at 18:29:09 UTC, Ilya Yaroshenko
wrote:
full days now. All the .lib/.a files I have tried for BLAS and
to do: dmd -L .\openblas.lib
put the lib file in your code path.
Error 42: Symbol Undefined _cb
Hi,everyone,
How to compile C++ and D code, and linking them together on
Windows ? I will use c++ function In D.
I use vs2010 c++ on Windows, What should I do?
For example:
1. create 2 files: C++.cpp D.d
2. I get the C++.obj fiel by vs2010.
3. I get the D.obj by dmd -c -m32mscoff
Then how
Hi,everyone,
Now,I use some code in strsafe.h,but where can get the strsafe.d ?
Thanks.
On Saturday, 24 February 2018 at 13:57:27 UTC, Adam D. Ruppe
wrote:
On Saturday, 24 February 2018 at 13:50:16 UTC, FrankLike wrote:
#define IOCTL_NDIS_QUERY_GLOBAL_STATS _NDIS_CONTROL_CODE(0,
METHOD_OUT_DIRECT)
auto IOCTL_NDIS_QUERY_GLOBAL_STATS () {
return _NDIS_CONTROL_CODE(0, METHOD_OU
Hi,everyone,
I can convert some simple C macros, but a bit more complicated
will need your help.
For example:
#define _NDIS_CONTROL_CODE(request,method) \
CTL_CODE(FILE_DEVICE_PHYSICAL_NETCARD, request,
method, FILE_ANY_ACCESS)
#define IOCTL_NDIS_QUERY_GLOBAL_STATS _NDIS_CONTR
On Thursday, 22 February 2018 at 18:02:11 UTC, Adam D. Ruppe
wrote:
You don't strip that at all, the function writes a
zero-terminated string to the buffer.
Thank you very much ! I forgot it.
On Thursday, 22 February 2018 at 16:59:40 UTC, Adam D. Ruppe
wrote:
On Thursday, 22 February 2018 at 16:55:14 UTC, FrankLike wrote:
char[100] abc ="aabc";
auto abcaa = ((abc).dup).stripRight;
try:
auto abcaa = stripRight(abc[])
Now,I want to get the result:
char[100] Path;
writeln(
On Thursday, 22 February 2018 at 17:08:14 UTC, FrankLike wrote:
On Thursday, 22 February 2018 at 16:59:40 UTC, Adam D. Ruppe
wrote:
On Thursday, 22 February 2018 at 16:55:14 UTC, FrankLike wrote:
It is simply that these functions require a slice so it can
resize it and you can't resize a stat
On Thursday, 22 February 2018 at 16:59:40 UTC, Adam D. Ruppe
wrote:
On Thursday, 22 February 2018 at 16:55:14 UTC, FrankLike wrote:
It is simply that these functions require a slice so it can
resize it and you can't resize a static array.
char[100] abc ="aabc";
string aa = to!strin
Hi,everyone,
How to use strip or stripRight on char[len]?
For example:
string abcs ="aabc";
auto abcsaa = abcs.stripRight;
writeln(abcsaa);
writeln("---abcsaa--stripRight ok ");
char[100] abc ="aabc";
auto abcaa = ((abc).dup).stripRight;
writeln(abcaa);
writeln("stripRight e
On Thursday, 22 February 2018 at 13:15:11 UTC, rikki cattermole
wrote:
On 23/02/2018 2:12 AM, FrankLike wrote:
IShellLink* pLink;
IPersistFile* ppf;
Reminder classes in D are already references, no need for
pointers to them.
Ok,I delete the pointers ,It's ok!
Thank you very muc
On Thursday, 22 February 2018 at 13:15:11 UTC, rikki cattermole
wrote:
Reminder classes in D are already references, no need for
pointers to them.
Thank you,but get the same error.
[D CODE]
if(lpszLnkFileDir is null) return;
HRESULT hr;
IShellLink pLink;
IPer
Hi,everyone,
I want use the Com object (it comes from other dll) in D,but the
core.sys.windows.objidl:QueryInterface Fuction not work.
For example:
import core.sys.windows.windef;
import core.sys.windows.basetyps;
import core.sys.windows.uuid;
import core.sys.windows.com;
import
core.sys.win
On Monday, 5 February 2018 at 10:04:10 UTC, Seb wrote:
On Monday, 5 February 2018 at 08:41:43 UTC, FrankLike wrote:
auto input = cast(string)hexString(hash);
Use toHexString to get the string:
Sorry,'hexString(hash)' is my clerical error.
Thank you.I got the answer "no array".
On Monday, 5 February 2018 at 09:45:11 UTC, tetyys wrote:
On Monday, 5 February 2018 at 08:41:43 UTC, FrankLike wrote:
Casting unknown bytes to string or char is unsafe, and
obviously some bytes can be invalid UTF8 sequences.
Thank you.I got my error.
On Monday, 5 February 2018 at 06:12:22 UTC, H. S. Teoh wrote:
On Mon, Feb 05, 2018 at 05:48:00AM +, FrankLike via
auto input = "48656c6c6f20776f726c6421";
auto str = input.chunks(2)
.map!(digits => cast(char) digits.to!ubyte(16))
On Monday, 5 February 2018 at 06:12:22 UTC, H. S. Teoh wrote:
On Mon, Feb 05, 2018 at 05:48:00AM +, FrankLike via
auto input = "48656c6c6f20776f726c6421";
auto str = input.chunks(2)
.map!(digits => cast(char) digits.to!ubyte(16))
On Monday, 5 February 2018 at 06:12:22 UTC, H. S. Teoh wrote:
On Mon, Feb 05, 2018 at 05:48:00AM +, FrankLike via
assert(str == "Hello world!");
Thanks.very good!
Now,I can get the string from hex string in compile time,but how
to get it in run time?
How to get it in run time?
Thanks.
On Sunday, 14 January 2018 at 03:49:05 UTC, Jonathan M Davis
wrote:
I get the result "1000" from byte[] byteData =[0,0,0,8];
Thank you very much.
Good to hear.
On a side note, I would point out that you almost certainly
want to be using ubyte and not byte. byte is signed, whereas
ubyte i
On Sunday, 14 January 2018 at 03:28:28 UTC, FrankLike wrote:
On Sunday, 14 January 2018 at 03:09:40 UTC, Jonathan M Davis
wrote:
On Sunday, January 14, 2018 02:41:39 FrankLike via
Digitalmars-d-learn wrote:
[...]
I'd suggest looking at
[...]
I get the result "1000&qu
On Sunday, 14 January 2018 at 03:09:40 UTC, Jonathan M Davis
wrote:
On Sunday, January 14, 2018 02:41:39 FrankLike via
Digitalmars-d-learn wrote:
[...]
I'd suggest looking at
[...]
I get the result "1000" from byte[] byteData =[0,0,0,8];
Thank you very much.
On Sunday, 14 January 2018 at 02:41:39 UTC, FrankLike wrote:
On Sunday, 14 January 2018 at 02:03:39 UTC, Jonathan M Davis
wrote:
Well, I'm not quite sure what you mean, but if you mean that
Sorry,Such as byte[] byteData =[8,0,0,0];
to convert, at last,get the string bit :"100".or get the BitA
On Sunday, 14 January 2018 at 02:03:39 UTC, Jonathan M Davis
wrote:
Well, I'm not quite sure what you mean, but if you mean that
Such as byte[] byteData =[0,0,0,8];
to convert, at last,get the string bit :"100".or get the BitArray.
Thanks.
Hi,everyone,
I need some help on 'Number Convert module' in D,such as
byte[] type to BinaryDigit.
Where can get the module?
Thanks.
On Monday, 18 December 2017 at 07:55:25 UTC, Andrey wrote:
Hello!
I have a question about creating native GUI applications for
Windows 7 or/and Windows 10.
Hi,here is a very good native d gui lib,it's name is "dgui":
https://github.com/FrankLIKE/DguiT/
I fork and modify ,let it work on DM
Hi,everyone:
Now,I find that I can't exec Store Procedure For MySql in D. use
mySql-d,mySql-native,or ddbc.
I want to get a SqlResult.
I think that it's the time to fix the bug!
Who can help me?
Thank you!
Frank
Hi,everyone,
Whether there is a module, like C#'s "Windows.Storage"
NameSpace, you can operate the Android phone or ios phone, you
can open the phone's folder on windows7?
Thank you .
Frank.
Hi,everyone:
I want to access the phone on Windows7,but get a error:
std.file.FileException@std\file.d(3368):\\computer\myPhone\SDCard\myfiles:
0x0041c112
0x0043E601
The error is only on Windows7,it's ok on linux,I doubt it's not a
error with file.d,maybe a e
On Friday, 25 December 2015 at 12:43:05 UTC, Jakob Jenkov wrote:
Hi, just a quick question:
If I write a program in D and I use Windows for development but
want it to run on Linux, do I have to copy the source code to
the target Linux machine and compile it there, to make an
executable for th
On Monday, 28 December 2015 at 15:23:19 UTC, FrankLike wrote:
New Answer: I've gotten the answer: use the difference 'gcc' for
c code.
---For x86_64:
#! /bin/sh
dfiles="max31855.d max5322.d mcp23008.d mcp23016.d
mcp23016reg.d mcp23017.d mcp23s08.d mcp23s17.d mcp2
Answer is here:
http://forum.dlang.org/thread/txvntyahlaewutzzw...@forum.dlang.org
Answer is here:
http://forum.dlang.org/thread/txvntyahlaewutzzw...@forum.dlang.org
I've gotten the answer: use the difference 'gcc' for c code.
---For x86_64:
#! /bin/sh
dfiles="max31855.d max5322.d mcp23008.d mcp23016.d mcp23016reg.d
mcp23017.d mcp23s08.d mcp23s17.d mcp23x08.d mcp23x0817.d
mcp3002.d mcp3004.d mcp3422.d mcp4802.d pcf8574.d pcf8591.
On Monday, 28 December 2015 at 13:17:04 UTC, FrankLike wrote:
About the first error ("...module wiringPi is in file
'wiringPi.d' which cannot be read...") - are you sure that the
dfiles are in "./wiringPi/WiringPi/"? The compiler reports
that it can't find them there.
You can try copying the Wi
About the first error ("...module wiringPi is in file
'wiringPi.d' which cannot be read...") - are you sure that the
dfiles are in "./wiringPi/WiringPi/"? The compiler reports that
it can't find them there.
You can try copying the WiringPi dfiles in the same folder as
"my.d".
About the second
On Sunday, 27 December 2015 at 17:19:26 UTC, Mike Parker wrote:
On Sunday, 27 December 2015 at 15:19:21 UTC, FrankLike wrote:
Hi,
Now I need get the .a file on Linux,target system is ARM.
If you use gcc ,you will use the 'ar' to get .a file,
but how to do by GDC ?
And how to get the execu
Now I build a project for ARM linux on ubuntu 15.04 ,but build
error.
I download the 'wiringPi' from http://wiringPi.com,convert the
*.h to *.d.then build the 'aa.so' file:
#! /bin/sh
dfiles="max31855.d max5322.d mcp23008.d mcp23016.d mcp23016reg.d
mcp23017.d mcp23s08.d mcp23s17.d mcp23x08.d mc
On Sunday, 27 December 2015 at 15:24:17 UTC, tcak wrote:
On Sunday, 27 December 2015 at 15:19:21 UTC, FrankLike wrote:
Hi,
Now I need get the .a file on Linux,target system is ARM.
If you use gcc ,you will use the 'ar' to get .a file,
but how to do by GDC ?
And how to get the execute file
Hi,
Now I need get the .a file on Linux,target system is ARM.
If you use gcc ,you will use the 'ar' to get .a file,
but how to do by GDC ?
And how to get the execute file by .a file and .d file?
Thank you.
Hi,everyone,I build wiringPi for 'Raspberry
Pi'.(http://wiringpi.com/)
Here is error info:
---gdcbuild
#! /bin/sh
dfiles="max31855.d max5322.d mcp23008.d mcp23016.d mcp23016reg.d
mcp23017.d mcp23s08.d mcp23s17.d mcp23x08.d mcp23x0817.d
mcp3002.d mcp3004.d mcp3422.d mcp4802.d pcf8574.d pcf8
Hi,everyone,I build wiringPi for 'Raspberry Pi' by GDC
(arm-unknown-linux-gnueabihf2.066.1).('wiringPi' download by
http://wiringpi.com/)
Here is error info:
---gdcbuild
#! /bin/sh
dfiles="max31855.d max5322.d mcp23008.d mcp23016.d mcp23016reg.d
mcp23017.d mcp23s08.d mcp23s17.d mcp23x08.d
Hi,everyone,
I've download the arm-unknown-linux-gnueabi and
arm-unknown-linux-gnueabihf,which is I must to use on ' Raspberry
Pi'?
Now,I've chosen the arm-unknown-linux-gnueabihf.That's ok?
I've made the hello.d,and made the hello.
The file 'hello' can be used on 'Raspberry Pi'?
Now I'm not
On Tuesday, 22 December 2015 at 15:08:20 UTC, FrankLike wrote:
On Tuesday, 22 December 2015 at 14:37:21 UTC, Rikki Cattermole
wrote:
I'm confused.
The commands listed e.g.
$ sudo wget
http://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list
$ su
On Tuesday, 22 December 2015 at 14:37:21 UTC, Rikki Cattermole
wrote:
I'm confused.
The commands listed e.g.
$ sudo wget
http://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list
$ sudo apt-get update && sudo apt-get -y
--allow-unauthenticated in
On Tuesday, 22 December 2015 at 14:11:29 UTC, Rikki Cattermole
wrote:
On 23/12/15 3:09 AM, FrankLike wrote:
Now,we can't setup dmd or ldc like this:
sudo apt-get install dmd
sudo apt-get install ldc2
If I set 'The Installation Source' is :
deb http://downloads.dlang.org/releases/2015/ main
Now,we can't setup dmd or ldc like this:
sudo apt-get install dmd
sudo apt-get install ldc2
If I set 'The Installation Source' is :
deb http://downloads.dlang.org/releases/2015/ main
But it's error,why?
Thank you.
On Wednesday, 25 February 2015 at 14:47:37 UTC, Dejan Lekic wrote:
On the "Articles" page on D Wiki (
http://wiki.dlang.org/Articles ) you have this link:
http://octarineparrot.com/article/view/getting-more-fiber-in-your-diet
It is probably the best article about using fibers in D that I
h
Hello,everyone,what is a better way with concurrency?
http://forum.dlang.org/thread/urqxiaairpnrjggqd...@forum.dlang.org
Thank you.
On Tuesday, 24 February 2015 at 07:49:55 UTC, Jacob Carlborg
wrote:
Can you help me about 'Concurrency in D'? Thank you.
http://forum.dlang.org/thread/dugsyhsswoovgywpl...@forum.dlang.org
Some people think rust is better ,but I think D is better.
But I don't know that how to use 'Concurrency i
There is a int[] ,how to use the Fiber execute it ?
Such as :
import std.stdio;
import core.thread;
class DerivedFiber : Fiber
{
this()
{
super( &run );
}
private :
void run()
{
printf( "Derived fiber running.\n" );
faa();
}
}
int[] v;
void ft
On Sunday, 8 February 2015 at 05:57:31 UTC, Lave Zhang wrote:
Hi,
My first D program is like this:
---
import std.stdio;
void main(string[] args)
{
dstring s1 = "hello你好"d;
writeln(s1);
}
---
But the output is not corre
On Thursday, 5 February 2015 at 14:09:10 UTC, bearophile wrote:
Yes,A.remove(item) or A.removeAt(index)
They are better than now.
On Thursday, 5 February 2015 at 14:09:10 UTC, bearophile wrote:
Tobias Pankrath:
Works as designed:
http://dlang.org/phobos/std_algorithm.html#.remove
Unfortunately it's one of the worst designed functions of
Phobos:
https://issues.dlang.org/show_bug.cgi?id=10959
Bye,
bearophile
Yes,A.re
On Thursday, 5 February 2015 at 13:29:30 UTC, Tobias Pankrath
wrote:
Works as designed:
http://dlang.org/phobos/std_algorithm.html#.remove
Thank you.
aa = remove(aa,1);//ok
but how to remove one item?
such as aa.remove(2) ?
Now I can remove element from a array:
module removeOne;
import std.stdio;
import std.array;
import std.algorithm;
void main()
{
int[] aa =[1,2,3,4,5];
aa = aa[0..2] ~aa[3..$];
writeln(aa); //ok
remove(aa,1);
writeln(aa);//get error result
}
You
On Monday, 2 February 2015 at 22:58:06 UTC, Dennis Ritchie wrote:
On Monday, 2 February 2015 at 22:14:36 UTC, Ali Çehreli wrote:
http://stackoverflow.com/questions/454681/how-to-keep-the-console-window-open-in-visual-c
Not helped:
http://i.imgur.com/4EG84YK.png
Use monoD do a hello world ,
On Friday, 9 January 2015 at 16:40:37 UTC, FrankLike wrote:
https://github.com/FrankLIKE/dco
you can use dco by local.ini( create it by dco -ini ),config your
info into local.ini.
modify the ';dflag=' to 'dflags=-JyourPath'
Thank you.
On Sunday, 21 December 2014 at 07:43:14 UTC, FrankLike wrote:
On Thursday, 20 November 2014 at 10:48:17 UTC, Suliman wrote:
I am playing with dco. And it's look very helpful for tiny
projects.
I can't understand is it's possible to add to dco.ini Jpath?
I am talking about something like:
dflag
On Friday, 9 January 2015 at 15:57:21 UTC, ketmar via
Digitalmars-d-learn wrote:
On Fri, 09 Jan 2015 15:36:21 +
FrankLike via Digitalmars-d-learn
wrote:
On Friday, 9 January 2015 at 14:03:21 UTC, ketmar via
Digitalmars-d-learn wrote:
> On Fri, 09 Jan 2015 13:54:00 +
> Robert
On Friday, 9 January 2015 at 14:03:21 UTC, ketmar via
Digitalmars-d-learn wrote:
On Fri, 09 Jan 2015 13:54:00 +
Robert burner Schadek via Digitalmars-d-learn
wrote:
On Friday, 9 January 2015 at 13:25:17 UTC, ketmar via
Digitalmars-d-learn wrote:
> if you *really* concerned with speed here,
On Friday, 9 January 2015 at 10:02:53 UTC, ketmar via
Digitalmars-d-learn wrote:
import std.algorithm, std.stdio;
void main () {
string s = "he is at home";
if (["home", "office", "sea", "plane"].canFind!((a, string
b) => b.canFind(a))(s)) {
writeln("got it!");
} else {
be creative! ;-)
import std.algorithm, std.stdio;
void main () {
string s = "he is at plane";
if (findAmong!((string a, string b) => b.canFind(a))([s],
["home", "office", "sea", "plane"]).length) {
writeln("got it!");
} else {
writeln("alas...");
}
}
or:
iday, 9 January 2015 at 07:41:07 UTC, ketmar via
Digitalmars-d-learn wrote:
On Fri, 09 Jan 2015 07:10:14 +
FrankLike via Digitalmars-d-learn
wrote:
On Thursday, 8 January 2015 at 15:15:59 UTC, Robert burner
Schadek wrote:
>
> use canFind like such:
> bool a = canFind(str
On Thursday, 8 January 2015 at 15:15:59 UTC, Robert burner
Schadek wrote:
use canFind like such:
bool a = canFind(strs,s) >= 1;
let the compiler figger out what the types of the parameter are.
canFind is work for such as :
bool x = canFind(["exe","lib","a","dll"],"a" );
but can't work fo
On Wednesday, 7 January 2015 at 17:08:55 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
Try this:
http://dlang.org/phobos-prerelease/std_algorithm#.findAmong
T
Thank you,it can work. but it's not what I want.
---test.d--
import std.stdio, std.algorithm,std.s
On Wednesday, 7 January 2015 at 17:08:55 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
Try this:
http://dlang.org/phobos-prerelease/std_algorithm#.findAmong
T
You mean ? The result is not that I want to get!
---test.d--
import std.stdio, std.algorithm,std.s
On Thursday, 8 January 2015 at 10:11:38 UTC, Danny wrote:
Hi,
sigh, so I have to annoy you with the truth...
On Tuesday, 6 January 2015 at 17:15:28 UTC, FrankLike wrote:
How to prevent sensitive information is displayed when the
extension 'exe' is modified to 'txt' on windows?
By not putting
To hide the infos you can also (I've seen people say that you
can use a packer) encrypt the strings and decode them at
run-time (e.g base64, a simple XOR, etc) and use the import()
idiom:
https://p0nce.github.io/d-idioms/#Embed-a-dynamic-library-in-an-executable
to import the compiled things
I would keep the encryption inside a template to prevent
users from assigning it to a variable without triggering CTFE.
Why would that be a problem?
Because the plain text will be in the object file.
http://dpaste.dzfl.pl/95b17fff42c6
Take a look at the object file and you will find “Sailo
std.algorithm.find has several overloads, one of which takes
multiple needles. The same is true for std.algorithm.canFind
Quoting from the relevant std.algorithm.find overload docs:
"Finds two or more needles into a haystack."
string strs ="hello.exe";
string[] s =["lib","exe","a","dll"];
http://dpaste.dzfl.pl/3bbdecfefa5c
Thanks.
How about:
http://dpaste.dzfl.pl/706ab2db9ce1
Thanks.
On Wednesday, 7 January 2015 at 15:11:57 UTC, John Colvin wrote:
On Wednesday, 7 January 2015 at 14:54:51 UTC, FrankLike wrote:
I want to know whether the string strs contains
'exe','dll','a','lib',in c#,
I can do : int index =
indexofany(strs,["exe","dll","a","lib"]);
but in D: I must to do
1 - 100 of 163 matches
Mail list logo