Re: How do I pass a template type as parameter?

2019-04-16 Thread Machine Code via Digitalmars-d-learn
On Tuesday, 16 April 2019 at 21:24:54 UTC, Adam D. Ruppe wrote: On Tuesday, 16 April 2019 at 21:07:51 UTC, Machine Code wrote: void f(appender!string buffer) { } appender isn't a type, it is a helper function that returns a type called Appender:

Re: How do I pass a template type as parameter?

2019-04-16 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 16 April 2019 at 21:07:51 UTC, Machine Code wrote: void f(appender!string buffer) { } appender isn't a type, it is a helper function that returns a type called Appender: http://dpldocs.info/experimental-docs/std.array.appender.1.html

How do I pass a template type as parameter?

2019-04-16 Thread Machine Code via Digitalmars-d-learn
I've tried those syntaxes: void f(appender!string buffer) { } void f(A = appender)(A!string buffer) { } but no luck... how do I do that?

Re: gtkDcoding Blog Post # 26 - Menu Basics

2019-04-16 Thread Ron Tarrant via Digitalmars-d-learn
It being Tuesday, it's time for another gtkDcoding Blog Post. Today, we continue our exploration of menu topics by looking at mnemonics and separators. You can find it here: http://gtkdcoding.com/2019/04/16/0027-mnemonic-shortcut-key.html