Exception education

2012-04-16 Thread alexhairyman
I believe I have searched everywhere, but I can barely find any documentation on exceptions/errors/throwables and I would love a link on how to inherit from them to create my own ones. -- alexhairyman

Implicit conversion from a base/array type

2014-02-01 Thread alexhairyman
Is there a way to implicitly convert *FROM* a base type? I have an implicit conversion to a base type (float[2]) in a struct, but now I'd like to be able to implicitly convert from a base type (in this case a float[2]) to a struct. Is this even allowed? Is it incorrect or unsafe? I'm still pre

Re: Implicit conversion from a base/array type

2014-02-01 Thread alexhairyman
On Sat, 01 Feb 2014 21:23:07 +, TheFlyingFiddle wrote: > On Saturday, 1 February 2014 at 20:26:27 UTC, alexhairyman wrote: >> Is there a way to implicitly convert *FROM* a base type? I have an >> implicit conversion to a base type (float[2]) in a struct, but now I'd &

Re: Implicit conversion from a base/array type

2014-02-01 Thread alexhairyman
On Sat, 01 Feb 2014 21:18:12 +, Martijn Pot wrote: > I tried something similar to (check first answer): > http://stackoverflow.com/questions/121162/what-does-the-explicit- keyword-in-c-mean > > but I can't get it to work. But then again... I'm just starting with D. > > It seems not to be sup

Mutexes and locking

2014-03-02 Thread alexhairyman
I think I'm missing something big, but I'm having troubles with mutexes (using in a parallel foreach loop somewhere else); Why do the trylocks return true shouldn't they return false because the mutex is already locked? I don't think this is a phobos bug, I'm on OSX using dmd 2.065 import cor

Re: Mutexes and locking

2014-03-03 Thread alexhairyman
On Monday, 3 March 2014 at 07:38:05 UTC, Ali Çehreli wrote: On 03/02/2014 10:38 PM, alexhairyman wrote: > I think I'm missing something big, but I'm having troubles with mutexes > (using in a parallel foreach loop somewhere else); Why do the trylocks > return true shouldn&

Re: Video playback

2014-05-19 Thread alexhairyman via Digitalmars-d-learn
On Sunday, 18 May 2014 at 07:10:29 UTC, Dmitry wrote: Hi everyone! I want to play video in my D-application (maybe WebM or Theora). However didn't find any library for operation with video in D. I am a beginner in D, experience of transfer of libraries with C/C++, certainly isn't present. May