I want to be able to support CP936, not just UTF8.
I can't use CP936. It's my pet peeve.
Hopefully we can solve the coding problem just like Python with
#encoding= GBK.
maybe you can try nana.
nanapro,I just success compile.
On Saturday, 29 May 2021 at 00:52:10 UTC, someone wrote:
sciter, of course. https://sciter.com/
I've also been looking for `good GUI`.
Now, I just find `WTL`. I don't like `QT`. It's too big.
I don't like `LGPL`. You can't link statically.
If you want to bind, I think `wxwidget` is good.
On Thursday, 27 May 2021 at 07:20:17 UTC, zjh wrote:
On
maybe try Gacui.
On Friday, 28 May 2021 at 00:07:41 UTC, zjh wrote:
On Friday,
maybe you can try nana.
On Friday, 28 May 2021 at 00:05:36 UTC, zjh wrote:
If there is a binding of wxWidgets.
then is good.
On Thursday, 27 May 2021 at 17:04:07 UTC, Alain De Vos wrote:
Let's
+10
On Thursday, 27 May 2021 at 01:17:44 UTC, someone wrote:
Yes,
I have download FOX.and success compile.
I think it is very good.small and beauty.
We need more "100% projects" that are just plug n play rather
than plug n pray
Right,I prefer 1*100% over 3*90%.
On Sunday, 27 June 2021 at 10:11:44 UTC, kinke wrote:
On Sunday, 27 June 2021 at 09:46:45 UTC, Ola Fosheim Grøstad
We need organized action,Instead of doing it blindly.
I always say organize.
On Friday, 9 July 2021 at 07:21:06 UTC, rempas wrote:
I have the following code:
`prompt[i]!='{'`,here,i=len.so `array overflow`
On Sunday, 11 July 2021 at 14:04:14 UTC, zjh wrote:
just genenrate `lstrStructureID` struct.
On Sunday, 11 July 2021 at 12:49:28 UTC, Adam D Ruppe wrote:
This creates a struct with teh literal name `lstrStructureID`.
Just like any other name. So it is NOT the value of the
variable.
Could you explain more detail?
```d
mixin template templateUGC ( typeStringUTF, alias
lstrStructureID){
public struct lstrStructureID {
typeStringUTF w;
}
}
mixin templateUGC!(string, "gudtUGC08");
```
You say `This creates a struct with teh literal name
lstrStructureID`.
I tried,can compile,but I don't know
On Thursday, 23 December 2021 at 08:33:17 UTC, zoujiaqing wrote:
C++ Code:
also `...`,it's very useful.
On Thursday, 25 November 2021 at 07:26:48 UTC, sclytrack wrote:
My understanding is that pure is used for compiler optimization
in loops and expressions. It leaves out multiple calls if it
figures out it is not needed.
[one
On Thursday, 25 November 2021 at 06:56:38 UTC, BoQsc wrote:
In other words: as simple as possible to use.
`dmd -i`,no need `one big file`.
On Thursday, 25 November 2021 at 08:06:27 UTC, rumbu wrote:
#
//this works
line
I hate `#`.
On Thursday, 11 November 2021 at 05:37:05 UTC, Salih Dincer wrote:
is this a issue, do you need to case?
out of bound.
On Wednesday, 17 November 2021 at 03:21:34 UTC, Ali Çehreli wrote:
On 11/16/21 6:10 PM, pascal111 I think 'med' is by Walter
Bright; he uses that editor daily.
Ali
Med is too simple,just for learn.
Actually, it's best to program with `VIM`,kinds of plugin.
I've been saying that D we should
On Tuesday, 2 November 2021 at 23:02:42 UTC, Ali Çehreli wrote:
On 11/2/21 3:57 PM, Ali Çehreli wrote:
const x = readln.strip;
this is very interesting .`readln` then `strip;`,Very natural.
On Sunday, 18 July 2021 at 10:02:07 UTC, ag0aep6g wrote:
On 17.07.21 15:56, ag0aep6g wrote:
+1.
IMO,`strong pure` is `the outside world` has no impact on me.
`Funcs` don't have any `indirect`.
On Saturday, 17 July 2021 at 22:40:35 UTC, someone wrote:
On Saturday, 17 July 2021 at 21:46:38 UTC, Jack Applegame wrote:
This must be `Forum Oriented Programming`.
On Thursday, 12 May 2022 at 20:49:08 UTC, Chris Katko wrote:
In D, I can do the module based method, but nothing short of
renaming variables gives me a list of violations and, that also
makes all the correct internal accesses wrong. Because private
doesn't work.
Call it whatever keyword you
On Tuesday, 17 May 2022 at 06:28:10 UTC, cc wrote:
Far better to just keep your house clean every day than let the
trash pile up and wait for the maid to come, IMO.
Right,GC is a bad idea!
On Tuesday, 17 May 2022 at 11:50:30 UTC, zjh wrote:
Right,GC is a bad idea!
Endless use of memory without freeing.
It's totally unreasonable waste.
On Thursday, 12 May 2022 at 21:58:33 UTC, Ali Çehreli wrote:
so what exact topic would you like to see?
May be you can talk about how to link `d` to`C++`. There are too
few examples.
Or `D` how to link to `Rust`,etc.
I don't even read the `basics` of C++, which is boring.
And interested
On Friday, 13 May 2022 at 08:28:56 UTC, vit wrote:
...
```d
...
this(DataSources dataSources){
this.dataSources = dataSources;
}
...
return new MultiGraph!(staticMap!(PointerTarget, Ts))(ts);//ts
```
How is `ts` convert to `DataSources`?
On Friday, 13 May 2022 at 13:06:32 UTC, vit wrote:
On Friday, 13 May 2022 at 11:58:15 UTC, zjh wrote:
Thank you for your detail explain.
On Wednesday, 11 May 2022 at 05:41:35 UTC, Ali Çehreli wrote:
What are you stuck at? What was the most difficult features to
understand? etc.
I don't know the progress of `interface to C++`.
I want to use my C++ functions in `d`.
`C++`'s `concept` and `...` is very convenient.
On Thursday, 12 May 2022 at 02:35:50 UTC, zjh wrote:
`C++`'s `concept` and `...` is very convenient.
And C++'s `stackless coroutine`.
On Thursday, 12 May 2022 at 02:40:09 UTC, zjh wrote:
And C++'s `stackless coroutine`.
Another one,
I hope the `error message` can be adapted to different languages
like `chinese/german/russion/turkish` etc.
On Thursday, 12 May 2022 at 13:04:51 UTC, Alain De Vos wrote:
Is there a link to a webpage with some dlang exercises in order
to see if i master the language, from simple to diffucult ?
[dtour](https://tour.dlang.org/).
On Saturday, 14 May 2022 at 04:31:48 UTC, zjh wrote:
Likewise, each post could add something like `votes` ,
Or something like all kinds of `tags` such as
`range/fiber/commandline/auto ref/in/...`.
Making `good use` of the `existing answers` in the forum will be
very beneficial for `D`
On Friday, 13 May 2022 at 21:54:04 UTC, max haughton wrote:
I have a PR which alters the error message you get if you do
```d
void main()
{
func() == 43;
}
```
This is an example of an error message which could be
counterintuitive to a new D programmer,
Can `D` support error messages in
On Friday, 13 May 2022 at 21:54:04 UTC, max haughton wrote:
Can `D` support error messages in `multiple languages`?
Such as `Chinese/German/Russian/Turkey`.
On Saturday, 14 May 2022 at 04:09:00 UTC, Ali Çehreli wrote:
stopped by a spam filter.
Right.
D forum should add a "`author delete`" function.
Likewise, each post could add something like `votes` , good posts
will naturally `come out` and be collected together.
It's really convenient for
On Friday, 27 May 2022 at 13:40:25 UTC, Alexander Zhirov wrote:
I'm trying to compile a file that weighs 3 kilobytes. I'm also
linking a self-written dynamic library. I don't understand why
the resulting executable file is so huge?
I just switched from `32-bit` to 64 bit, but the '64' bit
On Saturday, 14 May 2022 at 08:51:24 UTC, H. S. Teoh wrote:
The D wiki could be used for this purpose.
Many of your posts are very good. I like them very much. Thank
you.
I haven't played with `wiki`. However, Maybe we can `organize and
display` good posts according to
On Saturday, 14 May 2022 at 12:46:45 UTC, frame wrote:
Every
larger app with a news feed also has possibility to
categorize/filter it.
I think we can set up a special `web page` to collect `good
posts` and classify them according to `'author/category/label'`,
and its content can be
On Friday, 20 May 2022 at 02:37:48 UTC, harakim wrote:
`winrt` may be good.
but `winrtd` has many bugs.
On Sunday, 17 April 2022 at 15:13:29 UTC, HuskyNator wrote:
This is a twofold question, along the example code below:
The `default constructor` of `struct` is very convenient to use.
I hope that d can support it like `C++`.
On Monday, 18 April 2022 at 13:21:44 UTC, zjh wrote:
I hope that d can support it like `C++`.
`Struct` and `class` behavior is inconsistent.
`Constructors` sometimes have initialize behavior.
If D doesn't think about `C++` users, `C++` users feel too
troublesome, can't understand, and the
On Friday, 6 May 2022 at 04:26:13 UTC, Siarhei Siamashka wrote:
Rust is happily eating D's lunch.
Yes, `Rust` has intercepted d's most users.
However, a good meal is not afraid of late . `Make up` the
language and compete with them.
On Friday, 6 May 2022 at 05:44:39 UTC, vit wrote:
Try this:
Very Good,Thank you very much!
On Friday, 6 May 2022 at 06:57:40 UTC, zjh wrote:
Yes, `Rust` has intercepted d's most users.
`C++, Rust and python` all have the `biggest feature`, that is,
they pay attention not only to the `language`, but also to the
`library`!
`D` language should be the `same`!
For example, I think
On Friday, 6 May 2022 at 08:25:34 UTC, Siarhei Siamashka wrote:
On Friday, 6 May 2022 at 07:05:35 UTC, zjh wrote:
For example, I think `d` can also make use of `'winrt'`, which
is very important for `GUI` programming . `D` officials should
pay attention to `it`.
I have downloaded `dwinrt`
On Friday, 6 May 2022 at 07:13:06 UTC, zjh wrote:
In addition, `D` should not be positioned as `one`'s `second
language`, but as `first language`.
We should position ourselves in `comfort` and make programmers
`feel good`.
Only when the "`programmers`" are comfortable, naturally, they
will
On Friday, 6 May 2022 at 06:57:40 UTC, zjh wrote:
We should even `track` the `main libraries` of `major languages`
and have `professionals` write their `ports` to `D`.
There should also be `news` about `major language/major
libraries`'s `major news or actions`.Instead of just `focusing
on`
Hello everyone,I have following function:
```d
import core.stdc.stdio;
void f(int i,int j){
printf("%i,%i",i,j);
}
```
I want to forward `int[N]` to `(int i,int j)` etc. How can I
write a forwarding function?
```d
void ff(alias g,int...I)(int[2]k){
g(k[I]);
}//How to unpack template
On Monday, 29 August 2022 at 21:46:48 UTC, ryuukk_ wrote:
What `-g` does that makes this code compile and work with DMD?
I guess it's global sharing. not `tls`.
On Tuesday, 6 September 2022 at 19:44:23 UTC, jmh530 wrote:
.
`xmake` is simpler.
On Sunday, 4 September 2022 at 01:52:11 UTC, Ali Çehreli wrote:
Let's say I have three modules that work together, which I want
to register on dub: A, B, and C.
You should learn `ARSD`, and become `Ali-official`.
On Wednesday, 19 October 2022 at 05:41:26 UTC, zjh wrote:
Why can't do it `in one step`?
Why always afraid to `add features`?
C++ is `so complicated` ,but that people are not afraid to
continue to `add features`.
There is also `class level private`. I saw someone start it by
himself, and he
On Wednesday, 19 October 2022 at 05:50:18 UTC, zjh wrote:
In my opinion, as long as `users` have reasonable needs,
languages should added corresponding features, instead of
becoming religions.
`Some features` are very popular for users,I really don't know
why they didn't add it.
When you
On Wednesday, 19 October 2022 at 05:41:26 UTC, zjh wrote:
Why always afraid to `add features`?
C++ is `so complicated` ,but that people are not afraid to
continue to `add features`.
Look at the `emerging` languages, which are not crazy about
`adding features`. Even `go` is adding generics.
On Wednesday, 19 October 2022 at 04:59:40 UTC, mw wrote:
...
Why can't do it `in one step`?
Why always afraid to `add features`?
C++ is `so complicated` ,but that people are not afraid to
continue to `add features`.
On Saturday, 10 September 2022 at 22:07:32 UTC, Ali Çehreli wrote:
On 9/10/22 13:04, Daniel Donnell wrote:
> https://dlang.org/spec/cpp_interface.html
At DConf, Manu indicated that that page is outdated and that
D's C++ support is actually a lot better.
Update it quickly, This is a big
On Thursday, 29 September 2022 at 20:56:50 UTC, Chris Piker wrote:
```lua
set_languages("c99")
```
Try:
`add_cxflags` or `add_files("src/*.c")` or
`set_languages("c")` or
`set_languages("c11")` .
or ,use `-l` to set language.
```cpp
xmake create -l c -t static test
```
On Wednesday, 28 September 2022 at 05:29:41 UTC, Chris Piker
wrote:
`Xmake` is indeed simpler.
`Xmake` is really nice!
On Monday, 8 August 2022 at 12:26:50 UTC, rempas wrote:
On Monday, 8 August 2022 at 11:03:21 UTC, Dom Disc wrote:
You should first describe what you want to do clearly.
On Saturday, 31 December 2022 at 17:13:16 UTC, Hipreme wrote:
[...]
Nice article.
On Sunday, 11 December 2022 at 16:48:57 UTC, Ali Çehreli wrote:
However, the situation has changed in D: It has been possible
to pass rvalues by reference through the magic of 'in'
parameters. This currently requires the -preview=in compiler
switch, which makes 'in' parameters imply 'const
On Saturday, 10 December 2022 at 19:49:23 UTC, Salih Dincer wrote:
SDB@79
Can the `range` be partially traversed? That is, suppose we only
access the `[3,5)` elements?
On Sunday, 11 December 2022 at 07:47:35 UTC, Salih Dincer wrote:
..
Thank you for your reply. I think if you take `random` values
frequently, you'd better use `'array'`,am I right?
On Sunday, 11 December 2022 at 04:36:45 UTC, thebluepandabear
wrote:
"The main reason for this limitation is the fact that a
function taking a ref
parameter can hold on to that reference for later use, at a
time when the rvalue
would not be available."
I only know that `rvalue` is a
On Monday, 28 November 2022 at 16:21:20 UTC, NonNull wrote:
Any idea what may be going on with dmd?
use `sc.ini` like this:
```d
[Version]
version=7.51 Build 020
[Environment]
lj=E:\path
DFLAGS="-I%@P%\..\..\src\phobos"
"-I%@P%\..\..\src\druntime\import" "-I%lj%\dimport"
LIB="%@P%\..\lib"
On Tuesday, 29 November 2022 at 01:08:03 UTC, zjh wrote:
...
```d
[Environment64]
LIB=%@P%\..\lib;%lj%\dku;
```
On Wednesday, 30 November 2022 at 01:17:14 UTC, zjh wrote:
Should there be an `intermediate layer` to simplify such
function calls?
There should be a `placeholder` similar to `inout` that can
absorb all `attributes` of the parameter.
On Wednesday, 30 November 2022 at 00:50:46 UTC, WebFreak001 wrote:
...
Should there be an `intermediate layer` to simplify such function
calls?
On Friday, 11 November 2022 at 13:05:19 UTC, Hipreme wrote:
...
Nice article,thank you.
On Thursday, 17 November 2022 at 04:25:13 UTC, Daniel Donnelly,
Jr. wrote:
...
`crtp`, will it work?
On Tuesday, 17 January 2023 at 11:16:25 UTC, DLearner wrote:
With the latest version of 'dmd101.2',`dmd a.c`, I get:
C:\Windows
Kits\10\Include\10.0.22000.0\ucrt\corecrt_wstdio.h|1208| Error:
function `a.__vswprintf_l` redeclaration with different type
C:\Windows
On Wednesday, 18 January 2023 at 02:05:34 UTC, zjh wrote:
< ...
`nightly`:
Unresolved external symbol `__va_start`, function `_fwprintf_`.
link error.
On Tuesday, 8 November 2022 at 13:55:44 UTC, Adam D Ruppe wrote:
It is on my list but minigui is a pretty simple class
collection of basic widgets. It works pretty well now. I don't
have too many intro examples yet though. My blog has one thing
but it uses an experimental piece
On Monday, 7 November 2022 at 04:54:05 UTC, ikelaiah wrote:
...
Yes, more than 100 skills, not easy get.
On Sunday, 6 November 2022 at 22:43:33 UTC, ikelaiah wrote:
Hi,
...
Is there a second edition? After all, it has been many years.
On Monday, 7 November 2022 at 01:06:23 UTC, Adam D Ruppe wrote:
No, but not that much has changed and you can always post here
with questions.
How is your `minigui`? Please write an `introduction` when you
have time.
On Friday, 10 March 2023 at 02:48:43 UTC, John Xu wrote:
```d
module chinese;
import std.stdio : writeln;
import std.conv;
import std.windows.charset;
int main(string[] argv)
{
auto s1 = "中文";//utf8 字符串
writeln("word:"~ s1); //乱的
writeln("word:" ~
On Friday, 10 March 2023 at 06:19:38 UTC, zjh wrote:
`D language` is too unfriendly for Chinese users!
You can't even write `gbk` files.
On Saturday, 11 March 2023 at 19:56:09 UTC, 0xEAB wrote:
If you desire to use other encodings, how about using ubyte +
ubyte[]?
There is no example. An example should be added in an obvious
position.
I tried for a long time, but couldn't output `gbk`, and I finally
gave up.
On Tuesday, 14 March 2023 at 09:20:54 UTC, Kagamin wrote:
I guess if your console is in gbk encoding, you can just write
bytes with stdout.write.
Thank you for your reply, but only display bytes, not gbk text.
On Monday, 13 March 2023 at 15:50:37 UTC, Steven Schveighoffer
wrote:
What is required is an addition to the `std.encoding` module,
to allow such an encoding.
Thank you for your information.
On Wednesday, 22 March 2023 at 15:23:42 UTC, Kagamin wrote:
https://dlang.org/phobos/std_stdio.html#rawWrite
It's really amazing, it succeeded. Thank you!
```cpp
auto b="test.txt";//gbk
void[]d=read(b);
stdout.rawWrite(d);
```
On Thursday, 23 March 2023 at 13:38:51 UTC, Alexander Zhirov
wrote:
Is it possible to convert such records inside the structure to
the assigned type?
```d
struct MyVal
{
string value;
// Here it would be possible to use an alias to this, but
it can only be used 1 time
}
auto a =
On Sunday, 12 March 2023 at 20:03:23 UTC, 0xEAB wrote:
...
Thank you for your reply, but is there any way to output `gbk`
code to the console?
On Wednesday, 15 February 2023 at 12:44:19 UTC, zjh wrote:
Right... They greatly increase your code maintenance work!
Many people left D because of these small details!
Their encapsulation can actually leakage class members.
Programmers in other languages will laugh cry!
On Saturday, 18 February 2023 at 06:55:49 UTC, ProtectAndHide
wrote:
No, I think D is not for me.
They don't care about the needs of `D` users!
They won't listen ,even if you said it thousand times.
On Thursday, 16 February 2023 at 22:25:22 UTC, ProtectAndHide
wrote:
also, I noticed that you intentionally? did not respond to the
facts that I outlined:
ie.
They can't refute you, so they have to blame you.
You can't wake up who pretend to sleep.
On Friday, 17 February 2023 at 01:13:59 UTC, zjh wrote:
They can't refute you, so they have to blame you.
You can't wake up who pretend to sleep.
They don't admit their mistakes! And `D` community is getting
smaller and smaller!
If I were D author , I would suspect that they are undercover
On Friday, 17 February 2023 at 01:21:18 UTC, zjh wrote:
They don't admit their mistakes! And `D` community is getting
smaller and smaller!
Because other languages laughs cry!
`D` don't even have `type-safe` classes.
The ability of a group of people to open their eyes and tell lies
is
On Thursday, 9 February 2023 at 13:49:03 UTC, zjh wrote:
..
There are too `few newcomers` to D, and D must change.
If I can, I think `'D++'` is a good idea! Learn from a
`successful` language!
The typical feature of `C++` is that you have it. Although I
don't have it now, I will have it
On Thursday, 9 February 2023 at 12:55:41 UTC, Guillaume Piolat
wrote:
yeah right let's implement everything that people propose
I like the concept of C++: I provide `facilities`, you can use it
or not.
Not that you can only do it `like this`! This is the only way.
What's more, people put
On Thursday, 9 February 2023 at 13:41:27 UTC, zjh wrote:
Our predecessors used D very early. At first, they were very
`excited`. But `later`, they left because some people in D were
too `stubborn`.
Therefore, the community is very small.
Our predecessors are `very smart` people, and they
On Thursday, 9 February 2023 at 13:32:36 UTC, zjh wrote:
They don't even admit the smaller the encapsulation, the better.
Our predecessors used D very early. At first, they were very
`excited`. But `later`, they left because some people in D were
too `stubborn`.
You can provide
On Thursday, 9 February 2023 at 14:03:41 UTC, zjh wrote:
If I can, I think `'D++'` is a good idea! Learn from a
`successful` language!
Don't be afraid of D becoming complex. C++ is already `super
complex`. Aren't there more and more people still using it?
Therefore, I don't approve of
On Thursday, 9 February 2023 at 13:07:56 UTC, thebluepandabear
wrote:
yeah the whole module behaviour with `private` is just a
massive turn off tbh, it needs to be changed to match the Java
style
They don't even admit the smaller the encapsulation, the better.
On Thursday, 9 February 2023 at 20:05:06 UTC, Ali Çehreli wrote:
On 2/8/23 04:07, zjh wrote:
Besides, D has zero problems with its private implementation in
the sense that there has been zero bugs related to it being
that way. In contrast, I use D every day and love its relaxed
attitude
On Thursday, 9 February 2023 at 20:05:06 UTC, Ali Çehreli wrote:
In contrast, I use D every day and love its relaxed attitude
towards private.
I admit that you use 'D' happy, but you don't admit that I use
'D' unhappy.
On Friday, 10 February 2023 at 00:58:51 UTC, zjh wrote:
I admit that you use 'D' happy, but you don't admit that I use
'D' unhappy.
Right,just `forkit`.
The `minority` language is more closed than the big language! If
you think about it, you will know that the `'D'` ranking should
fall!
1 - 100 of 142 matches
Mail list logo