Re: Reading image files

2016-11-25 Thread Mike Parker via Digitalmars-d-learn
On Friday, 25 November 2016 at 20:10:56 UTC, solidstate1991 wrote: glitchy image after rendering the result) and I have no idea how DerelictFI works at all, DerelictFI is just a binding to FreeImage, so the more relevant point to consider is how FreeImage works :-) Everything you need to

Re: the best language I have ever met(?)

2016-11-25 Thread Artur Skawina via Digitalmars-d-learn
On 11/25/16 18:33, Jonathan M Davis via Digitalmars-d-learn wrote: > On Friday, November 25, 2016 18:20:11 Artur Skawina via Digitalmars-d-learn > wrote: >> On 11/25/16 17:30, Jonathan M Davis via Digitalmars-d-learn wrote: >>> On Friday, November 25, 2016 17:03:32 Artur Skawina via enum

Re: Reading image files

2016-11-25 Thread Ali Çehreli via Digitalmars-d-learn
On 11/25/2016 12:10 PM, solidstate1991 wrote: After I couldn't figure out how to convert Imageformats' own format to my own (consequential read from IFImage resulted in a glitchy image after rendering the result) and I have no idea how DerelictFI works at all, I'm currently out of options. At

Reading image files

2016-11-25 Thread solidstate1991 via Digitalmars-d-learn
After I couldn't figure out how to convert Imageformats' own format to my own (consequential read from IFImage resulted in a glitchy image after rendering the result) and I have no idea how DerelictFI works at all, I'm currently out of options. At least I need PNG and TGA (the latter is

Re: the best language I have ever met(?)

2016-11-25 Thread ketmar via Digitalmars-d-learn
On Friday, 25 November 2016 at 14:27:39 UTC, Igor Shirkalin wrote: On Wednesday, 23 November 2016 at 18:58:55 UTC, ketmar wrote: We can define static array without counting the elements as following: enum array_ = [1u,2,3,4]; uint[array_.length] static_array = array_; there are

Re: the best language I have ever met(?)

2016-11-25 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, November 25, 2016 18:20:11 Artur Skawina via Digitalmars-d-learn wrote: > On 11/25/16 17:30, Jonathan M Davis via Digitalmars-d-learn wrote: > > On Friday, November 25, 2016 17:03:32 Artur Skawina via > >>enum T[N] staticArray(T, alias ELS, size_t N=ELS.length) = ELS; > >>auto

Vibe d streaming content

2016-11-25 Thread Jethro via Digitalmars-d-learn
How can I create a streaming server where I can stream live and pre-recorded audio and video to http clients using html5 on the client end? Is it a simple matter of implementing the rtp/rtsp protocols and such along with (d)encoding or is there a lot more work?

Re: A simplification of the RvalueRef idiom

2016-11-25 Thread Nick Treleaven via Digitalmars-d-learn
On Thursday, 24 November 2016 at 00:35:39 UTC, TheGag96 wrote: The thing that gets me more is "return" as a function attribute. I see it under "MemberFunctionAttribute" in the grammar but I can't find an explanation for its use anywhere... I've started documenting it now, will post a PR soon.

Re: the best language I have ever met(?)

2016-11-25 Thread Artur Skawina via Digitalmars-d-learn
On 11/25/16 17:30, Jonathan M Davis via Digitalmars-d-learn wrote: > On Friday, November 25, 2016 17:03:32 Artur Skawina via Digitalmars-d-learn > wrote: >> On 11/25/16 15:51, Jonathan M Davis via Digitalmars-d-learn wrote: >>> On Friday, November 25, 2016 14:27:39 Igor Shirkalin via >>>

Re: the best language I have ever met(?)

2016-11-25 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, November 25, 2016 08:26:11 Jonathan M Davis via Digitalmars-d- learn wrote: > and opening an enhancement request to make the compiler smart enough that > > auto arr = staticArray!ubyte([1, 2, 3, 4]); > > would work. Opened: https://issues.dlang.org/show_bug.cgi?id=16779 And regardless

Re: the best language I have ever met(?)

2016-11-25 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, November 25, 2016 17:03:32 Artur Skawina via Digitalmars-d-learn wrote: > On 11/25/16 15:51, Jonathan M Davis via Digitalmars-d-learn wrote: > > On Friday, November 25, 2016 14:27:39 Igor Shirkalin via > > Digitalmars-d-learn> > > wrote: > >> I think you may write it (I mean actual D)

Re: the best language I have ever met(?)

2016-11-25 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, November 25, 2016 15:59:48 Igor Shirkalin via Digitalmars-d-learn wrote: > On Friday, 25 November 2016 at 14:51:52 UTC, Jonathan M Davis > > auto arr = staticArray!ubyte([1, 2, 3, 4]); > > > > doesn't compile either. The most straightforward > > implementations are something like > >

Re: spam in bugzilla

2016-11-25 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/23/16 5:25 PM, Brad Roberts via Digitalmars-d-learn wrote: I've been marking the accounts as spam and moving the bugs to a specific spam product/category. The last few days have been unusual. If it keeps up, I'll investigate ways of potentially dealing with it better, but I really don't

Re: the best language I have ever met(?)

2016-11-25 Thread Artur Skawina via Digitalmars-d-learn
On 11/25/16 15:51, Jonathan M Davis via Digitalmars-d-learn wrote: > On Friday, November 25, 2016 14:27:39 Igor Shirkalin via Digitalmars-d-learn > wrote: >> I think you may write it (I mean actual D) with using some >> template like this: >> >> auto array = static_array!uint(1, 2, 3, 4) >> >>

Re: the best language I have ever met(?)

2016-11-25 Thread Igor Shirkalin via Digitalmars-d-learn
On Friday, 25 November 2016 at 07:17:18 UTC, MGW wrote: On Wednesday, 23 November 2016 at 18:54:35 UTC, Igor Shirkalin wrote: Igor, is the good Russian-speaking forum https://vk.com/vk_dlang. There are articles on GUI and other aspects of dlang. Thank you, I'll tale a look at it for sure.

Re: the best language I have ever met(?)

2016-11-25 Thread Igor Shirkalin via Digitalmars-d-learn
On Friday, 25 November 2016 at 14:51:52 UTC, Jonathan M Davis wrote: I think you may write it (I mean actual D) with using some template like this: auto array = static_array!uint(1, 2, 3, 4) Could you please help to write down this template in the best and clear manner? That's easy. The

Re: Switch ignores case (?)

2016-11-25 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/24/16 7:16 AM, ketmar wrote: On Thursday, 24 November 2016 at 11:40:24 UTC, Antonio Corbi wrote: Could it be possible to ping M. Nowak to include the fix for this bug (due to its importance) in the final 2.072.1 release? there is no real fix yet. what i provided is a quick hack, not

Re: the best language I have ever met(?)

2016-11-25 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, November 25, 2016 14:27:39 Igor Shirkalin via Digitalmars-d-learn wrote: > On Wednesday, 23 November 2016 at 18:58:55 UTC, ketmar wrote: > >> We can define static array without counting the elements as > >> following: > >> > >> > >> enum array_ = [1u,2,3,4]; > >> uint[array_.length]

Re: the best language I have ever met(?)

2016-11-25 Thread Igor Shirkalin via Digitalmars-d-learn
On Wednesday, 23 November 2016 at 18:58:55 UTC, ketmar wrote: We can define static array without counting the elements as following: enum array_ = [1u,2,3,4]; uint[array_.length] static_array = array_; there are workarounds, of course. yet i'll take mine `uint[$] a = [1u,2,3,4];` over that