What is Base64 part in Base64.encode

zabruk70 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 14 14:34:35 PDT 2017


On Sunday, 14 May 2017 at 21:22:20 UTC, Moritz Maxeiner wrote:
> The full line is `alias Base64 = Base64Impl!('+', '/');`

Yes. When we use it like this:

   const(char)[] encoded = Base64.encode(data);

then template instantiated and produce ... what?

> I don't understand what you're trying to express here.

What kind of symbols (class name, structure name, type)
can be used with dot in D language?

What produced by template instantiation `Base64Impl!('+', '/')`
then i use alias `Base64`?

> You can create a base32 encoder however you like, D has lots of 
> different ways you could approach this; you can even do it in a

But i want mimic std.base64 syntax.
I want to write something like

   string encoded = Base32.encode(data);

And i don't want to use template.


More information about the Digitalmars-d-learn mailing list