Can I parse this kind of HTML with arsd.dom module?

2018-06-23 Thread Dr.No via Digitalmars-d-learn
This is the module I'm speaking about: https://arsd-official.dpldocs.info/arsd.dom.html So I have this HTML that not even parseGarbae() can del with: https://hostname.com/?file=foo.png=baa;>G! There is this spaces between "href" and "=" and "https..." which makes below code fails:

Re: DerelictVorbis and string pointer

2018-06-23 Thread ANtlord via Digitalmars-d-learn
On Sunday, 24 June 2018 at 01:54:52 UTC, Nicholas Wilson wrote: On Sunday, 24 June 2018 at 01:43:41 UTC, ANtlord wrote: On Sunday, 24 June 2018 at 01:26:48 UTC, ANtlord wrote: Actually I get it worked replacing `string filepath2` by `char[] filepath2` but filepath is string still and it

Re: Is HibernateD dead?

2018-06-23 Thread Timoses via Digitalmars-d-learn
On Thursday, 3 May 2018 at 10:27:47 UTC, Pasqui23 wrote: Last commit on https://github.com/buggins/hibernated was almost a year ago So what is the status of HibernateD?Should I use it if I need an ORM? Or would I risk unpatched security risks? Okay... wall of text. TLDR: project definition /

Re: DerelictVorbis and string pointer

2018-06-23 Thread Nicholas Wilson via Digitalmars-d-learn
On Sunday, 24 June 2018 at 01:43:41 UTC, ANtlord wrote: On Sunday, 24 June 2018 at 01:26:48 UTC, ANtlord wrote: Actually I get it worked replacing `string filepath2` by `char[] filepath2` but filepath is string still and it works correctly. It doesn't work Vorbis is a C library, so you

Re: DerelictVorbis and string pointer

2018-06-23 Thread rikki cattermole via Digitalmars-d-learn
On 24/06/2018 1:26 PM, ANtlord wrote: Hello D community! I'm developing an application that must work on audio especially playback Ogg files. So I took library DerelictVorbis [0] testing basic functions like `ov_fopen`. The tests were successful so I decided to implement core components of

Re: DerelictVorbis and string pointer

2018-06-23 Thread ANtlord via Digitalmars-d-learn
On Sunday, 24 June 2018 at 01:26:48 UTC, ANtlord wrote: Actually I get it worked replacing `string filepath2` by `char[] filepath2` but filepath is string still and it works correctly. It doesn't work

DerelictVorbis and string pointer

2018-06-23 Thread ANtlord via Digitalmars-d-learn
Hello D community! I'm developing an application that must work on audio especially playback Ogg files. So I took library DerelictVorbis [0] testing basic functions like `ov_fopen`. The tests were successful so I decided to implement core components of the application using D and Derelict

Re: Undo in D

2018-06-23 Thread bauss via Digitalmars-d-learn
On Saturday, 23 June 2018 at 01:58:31 UTC, DigitalDesigns wrote: Is there any idiomatic undo designs in D that give a more natural implementation than the standard techniques? There is the solution above, but there I've implemented something similar in Diamond. It's a little bit different

Re: Undo in D

2018-06-23 Thread Basile B. via Digitalmars-d-learn
On Saturday, 23 June 2018 at 14:06:08 UTC, Basile B. wrote: On Saturday, 23 June 2018 at 01:58:31 UTC, DigitalDesigns wrote: Is there any idiomatic undo designs in D that give a more natural implementation than the standard techniques? - The "stuff to undo" can be a forward range ("save"

Re: How do I filter out this type?

2018-06-23 Thread Dr.No via Digitalmars-d-learn
On Friday, 22 June 2018 at 17:20:03 UTC, Steven Schveighoffer wrote: On 6/22/18 1:07 PM, Dr.No wrote:    static if(is(typeof(__traits(getMember, B, field) == A[]))) static if(is(typeof(__traits(getMember, B, field)) == A[])) Note the slight change in parentheses. -Steve

Re: Undo in D

2018-06-23 Thread Basile B. via Digitalmars-d-learn
On Saturday, 23 June 2018 at 01:58:31 UTC, DigitalDesigns wrote: Is there any idiomatic undo designs in D that give a more natural implementation than the standard techniques? - The "stuff to undo" can be a forward range ("save" primitive, + assignable from a stored state) - The manager can

Re: Redundant "g" flag for regex?

2018-06-23 Thread biocyberman via Digitalmars-d-learn
On Saturday, 23 June 2018 at 13:45:32 UTC, Basile B. wrote: On Saturday, 23 June 2018 at 12:17:08 UTC, biocyberman wrote: I get the same output with or without "g" flag at line 6: https://run.dlang.io/is/9n7iz6 So I don't understand when I have to use "g" flag. My bet is that Regex results

Re: Redundant "g" flag for regex?

2018-06-23 Thread Basile B. via Digitalmars-d-learn
On Saturday, 23 June 2018 at 12:17:08 UTC, biocyberman wrote: I get the same output with or without "g" flag at line 6: https://run.dlang.io/is/9n7iz6 So I don't understand when I have to use "g" flag. My bet is that Regex results in D are lazy so "g" doesn't make sense in this context

Re: why explicitly use "flags" in regex does not work?

2018-06-23 Thread Basile B. via Digitalmars-d-learn
On Saturday, 23 June 2018 at 12:50:17 UTC, biocyberman wrote: On Saturday, 23 June 2018 at 12:20:10 UTC, biocyberman wrote: I got "Error: undefined identifier flags" in here: https://run.dlang.io/is/wquscz Removing "flags =" works. I kinda found an answer. It's a bit of a surprise anyway:

Re: [dub] Error: module `main` from file source\main.d is specified twice on the command line

2018-06-23 Thread Anonymouse via Digitalmars-d-learn
On Saturday, 23 June 2018 at 08:10:08 UTC, Jacob Carlborg wrote: On 2018-06-22 21:41, Anonymouse wrote: What can I do? It might be this issue [1], should be fixed in the latest version of Dub. [1] https://github.com/dlang/dub/issues/1454 Thanks.

Re: why explicitly use "flags" in regex does not work?

2018-06-23 Thread biocyberman via Digitalmars-d-learn
On Saturday, 23 June 2018 at 12:20:10 UTC, biocyberman wrote: I got "Error: undefined identifier flags" in here: https://run.dlang.io/is/wquscz Removing "flags =" works. I kinda found an answer. It's a bit of a surprise anyway:

why explicitly use "flags" in regex does not work?

2018-06-23 Thread biocyberman via Digitalmars-d-learn
I got "Error: undefined identifier flags" in here: https://run.dlang.io/is/wquscz Removing "flags =" works.

Redundant "g" flag for regex?

2018-06-23 Thread biocyberman via Digitalmars-d-learn
I get the same output with or without "g" flag at line 6: https://run.dlang.io/is/9n7iz6 So I don't understand when I have to use "g" flag.

Re: What is the point of nothrow?

2018-06-23 Thread wjoe via Digitalmars-d-learn
On Thursday, 21 June 2018 at 19:52:25 UTC, Jonathan M Davis wrote: On Thursday, June 21, 2018 13:16:28 wjoe via Digitalmars-d-learn wrote: On Wednesday, 20 June 2018 at 12:22:33 UTC, Kagamin wrote: > Do you know how to extract information from it on an > unfamiliar OS? Reading stack trace is

Re: [dub] Error: module `main` from file source\main.d is specified twice on the command line

2018-06-23 Thread Jacob Carlborg via Digitalmars-d-learn
On 2018-06-22 21:41, Anonymouse wrote: I'm trying to set up AppVeyor to build and test my project. After some dancing to get a 64-bit dmd.exe in there (which should really be included in the 7z in 2018) everything seems like it should work, but compiling with dub build fails. dub test works but