Re: What is Base64 part in Base64.encode

2017-05-14 Thread Moritz Maxeiner via Digitalmars-d-learn
On Sunday, 14 May 2017 at 21:34:35 UTC, zabruk70 wrote: 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

Re: What is Base64 part in Base64.encode

2017-05-14 Thread zabruk70 via Digitalmars-d-learn
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 exp

Re: What is Base64 part in Base64.encode

2017-05-14 Thread Moritz Maxeiner via Digitalmars-d-learn
On Sunday, 14 May 2017 at 20:04:07 UTC, zabruk70 wrote: I look to std.base64 module source. And dont unerstand what is the "Base64" part in "Base64.encode(data)" example. I see std.base64 module use template Base64Impl. I see alias Base64 = Base64Impl!... But down understand. Base64 not module,

What is Base64 part in Base64.encode

2017-05-14 Thread zabruk70 via Digitalmars-d-learn
I look to std.base64 module source. And dont unerstand what is the "Base64" part in "Base64.encode(data)" example. I see std.base64 module use template Base64Impl. I see alias Base64 = Base64Impl!... But down understand. Base64 not module, not structure, not class? Template Base64Impl shoud prod