Andrew Davison
Andrew Davison
Actually commenting out the printing of that charcter doesn't help. I still can't copy/paste a multi-line input.
Note: abolish(Name, Arity) is already a common thing.
See also call(',', C=!, (X=1,C;X=2)). $ ~/.cargo/bin/scryer-prolog ?- call(',', C=!, (X=1,C;X=2)). C = !, X = 1. ?- which should generate two solutions as the call to naked variable C...
I noticed the macros. I borrowed some ideas from there. First off the assert in s_alloc() is a no-no to me. A library should never deliberately cause an abort. I...
I get your point about NDEBUG but I work on a language interpreter and do a lot in debug mode. One of the features of the language is catching error...
Also libtommath seems to do it quickly.
Good idea. On Fri, Aug 25, 2023 at 6:00 PM Matteo Redaelli ***@***.***> wrote: > Hello > > Most of the modern programming languages have a uri/url library for >...
Implementing parse_url/2 would be a start. On Fri, Aug 25, 2023 at 6:00 PM Matteo Redaelli ***@***.***> wrote: > Hello > > Most of the modern programming languages have a...
Added... $ tpl ?- parse_url('http://www.xyz.org:81/hello?msg=Hello+World%21&foo=bar#xyz',P). P = [search([msg='Hello World!',foo=bar]),protocol(http),host('www.xyz.org'),port(81),path('/hello'),fragment(xyz)]. ?- parse_url(U,[search([msg='Hello World!',foo=bar]),protocol(http),host('www.xyz.org'),port(81),path('/hello'),fragment(xyz)]). U = 'http://www.xyz.org:81/hello?msg=Hello+World%21&foo=bar#xyz'. ?- I'll see about the rest.
Probably, though they are not created as interned atoms, hence just as easily reclaimed. On Sun, 27 Aug 2023, 23:18 Markus Triska, ***@***.***> wrote: > Wouldn't strings be a lot...