Re: Get type from string

2015-10-29 Thread DarkRiDDeR via Digitalmars-d-learn
On Wednesday, 28 October 2015 at 20:04:51 UTC, Adam D. Ruppe wrote: On Wednesday, 28 October 2015 at 17:57:16 UTC, DarkRiDDeR wrote: Thank you! Is it possible to call a method from a string at run time? Yes, though you have to prepare code to do it. Again, I'd try to make it work on

Re: very very thank you

2015-10-29 Thread Meta via Digitalmars-d-learn
On Thursday, 29 October 2015 at 06:13:17 UTC, guodemone wrote: 衷心的谢谢你,(very veryvery thank you in english) 请问,你是学生吧?你是哪个中国大学的学生?我也希望DLang可以进入中国的大学,祝你的OS好运!

Allocation strategies question

2015-10-29 Thread ref2401 via Digitalmars-d-learn
As I understand the `std.experimental.allocator` package will be included in the upcoming DMD 2.069 release. I like the idea of composable allocators. Though I've got a question which I can not answer myself. Let's assume a team which is developing an application that can benefit from usage

Re: Merging two named Tuples

2015-10-29 Thread Edwin van Leeuwen via Digitalmars-d-learn
On Saturday, 24 October 2015 at 11:04:14 UTC, Edwin van Leeuwen wrote: I am trying to write a function to merge two named structs, but am completely stuck on how to do that and was wondering if anyone good provide any help. I know I can access the different names with tup.fieldNames, but

Re: Merging two named Tuples

2015-10-29 Thread anonymous via Digitalmars-d-learn
On 29.10.2015 19:59, Edwin van Leeuwen wrote: On Saturday, 24 October 2015 at 11:04:14 UTC, Edwin van Leeuwen wrote: I am trying to write a function to merge two named structs, but am completely stuck on how to do that and was wondering if anyone good provide any help. I know I can access the

Re: Merging two named Tuples

2015-10-29 Thread Edwin van Leeuwen via Digitalmars-d-learn
On Thursday, 29 October 2015 at 19:42:10 UTC, anonymous wrote: `tup` is an ordinary (run time, dynamic) string to the type system. You can't mixin those. You can only mixin static values (enum, static immutable, CTFE results). The code you're generating doesn't depend on `base` and `other`.

我是程序员

2015-10-29 Thread guodemone via Digitalmars-d-learn
我是一个程序员,就是因为英语不好,技术进步很慢,从遇到D语言开始,我开始大量的接触底层开发,D给了我很多原先没有接触到的知识。所以让D成为国内大学的主流语言是非常合适的。他的编译器容易获得,易于安装,而且夸平台,比C更容易入门,又比C++易学,同时拥有动态语言的特性。如果能够进入大学教程的话,会是国内软件的一个飞速发展的工具软件了。

very very thank you

2015-10-29 Thread guodemone via Digitalmars-d-learn
衷心的谢谢你,(very veryvery thank you in english)

Re: very very thank you

2015-10-29 Thread lobo via Digitalmars-d-learn
On Thursday, 29 October 2015 at 06:13:17 UTC, guodemone wrote: 衷心的谢谢你,(very veryvery thank you in english) You're welcome, hope it helps :)

Re: Allocation strategies question

2015-10-29 Thread ref2401 via Digitalmars-d-learn
On Friday, 30 October 2015 at 01:26:17 UTC, Rikki Cattermole wrote: Take a look at the functions theAllocator and processAllocator. It would be greate if compiler were able to use `theAllocator` and `processAllocator` but they don't seem much helpfull. Terrible naming by the way.

Re: Allocation strategies question

2015-10-29 Thread ref2401 via Digitalmars-d-learn
On Friday, 30 October 2015 at 04:11:05 UTC, ref2401 wrote: It would be greate if compiler were able to use `theAllocator` and `processAllocator` but they don't seem much helpfull. Terrible naming by the way. I should have suggested different names if don't like present ones. if

Re: Allocation strategies question

2015-10-29 Thread Rikki Cattermole via Digitalmars-d-learn
On 30/10/15 5:27 PM, ref2401 wrote: On Friday, 30 October 2015 at 04:11:05 UTC, ref2401 wrote: It would be greate if compiler were able to use `theAllocator` and `processAllocator` but they don't seem much helpfull. Terrible naming by the way. I should have suggested different names if don't

Re: Allocation strategies question

2015-10-29 Thread Rikki Cattermole via Digitalmars-d-learn
On 30/10/15 7:56 AM, ref2401 wrote: As I understand the `std.experimental.allocator` package will be included in the upcoming DMD 2.069 release. I like the idea of composable allocators. Though I've got a question which I can not answer myself. Let's assume a team which is developing an