Re: [Gambas-user] problems in trie class

2014-12-03 Thread Tobias Boege
On Wed, 03 Dec 2014, Charlie Reinl wrote: > > > > > It should be case-sensitive. If it wasn't before on your system, that > > > > > was > > > > > a bug (I can't imagine where it came from, though). > > > > > > > > > > > but for my behaves non case sensitive would be better (or > > > > > > a switc

Re: [Gambas-user] problems in trie class

2014-12-03 Thread Charlie Reinl
Am Mittwoch, den 03.12.2014, 11:30 +0100 schrieb Charlie Reinl: > Am Montag, den 01.12.2014, 23:39 +0100 schrieb Tobias Boege: > > On Mon, 01 Dec 2014, Charlie Reinl wrote: > > > Am Montag, den 01.12.2014, 17:47 +0100 schrieb Tobias Boege: > > > > On Sat, 29 Nov 2014, Charlie Reinl wrote: > > > > >

Re: [Gambas-user] problems in trie class

2014-12-03 Thread Charlie Reinl
Am Montag, den 01.12.2014, 23:39 +0100 schrieb Tobias Boege: > On Mon, 01 Dec 2014, Charlie Reinl wrote: > > Am Montag, den 01.12.2014, 17:47 +0100 schrieb Tobias Boege: > > > On Sat, 29 Nov 2014, Charlie Reinl wrote: > > > > Am Samstag, den 29.11.2014, 20:05 +0100 schrieb Tobias Boege: > > > > > O

Re: [Gambas-user] problems in trie class

2014-12-01 Thread Tobias Boege
On Mon, 01 Dec 2014, Charlie Reinl wrote: > Am Montag, den 01.12.2014, 17:47 +0100 schrieb Tobias Boege: > > On Sat, 29 Nov 2014, Charlie Reinl wrote: > > > Am Samstag, den 29.11.2014, 20:05 +0100 schrieb Tobias Boege: > > > > On Tue, 18 Nov 2014, Karl Reinl wrote: > > > > > Salut Tobi, > > > > >

Re: [Gambas-user] problems in trie class

2014-12-01 Thread Charlie Reinl
Am Montag, den 01.12.2014, 17:47 +0100 schrieb Tobias Boege: > On Sat, 29 Nov 2014, Charlie Reinl wrote: > > Am Samstag, den 29.11.2014, 20:05 +0100 schrieb Tobias Boege: > > > On Tue, 18 Nov 2014, Karl Reinl wrote: > > > > Salut Tobi, > > > > > > > > played with you trie example (trietest) it cra

Re: [Gambas-user] problems in trie class

2014-12-01 Thread Benoît Minisini
Le 01/12/2014 19:05, Tobias Boege a écrit : > On Mon, 01 Dec 2014, Tobias Boege wrote: >>> If they are keys, they should be ASCII, not UTF-8, like with the >>> Collection class. >>> >> >> Currently the Trie supports arbitrary sequences of bytes as keys. It would >> take some time to move the code b

Re: [Gambas-user] problems in trie class

2014-12-01 Thread Tobias Boege
On Mon, 01 Dec 2014, Tobias Boege wrote: > > If they are keys, they should be ASCII, not UTF-8, like with the > > Collection class. > > > > Currently the Trie supports arbitrary sequences of bytes as keys. It would > take some time to move the code back in that restricts the key space to > ASCII

Re: [Gambas-user] problems in trie class

2014-12-01 Thread Tobias Boege
On Mon, 01 Dec 2014, Beno?t Minisini wrote: > > (After writing about half an hour complaining how hard it would be to get > > case-insensitivity right and efficient) I just had a magnificent idea: I > > will extend the native Trie class in Gambas and do something like that: > > > >' Written fro

Re: [Gambas-user] problems in trie class

2014-12-01 Thread Benoît Minisini
Le 01/12/2014 17:47, Tobias Boege a écrit : > On Sat, 29 Nov 2014, Charlie Reinl wrote: >> Am Samstag, den 29.11.2014, 20:05 +0100 schrieb Tobias Boege: >>> On Tue, 18 Nov 2014, Karl Reinl wrote: Salut Tobi, played with you trie example (trietest) it crash if p = h.GetPrefix("te

Re: [Gambas-user] problems in trie class

2014-12-01 Thread Tobias Boege
On Mon, 01 Dec 2014, Tobias Boege wrote: > Public Sub Add(Value As Variant, Key As String) > Dim hEntry As New _Trie_Entry > Dim sKey As String = Key > > If $iMode = gb.IgnoreCase Then sKey = String.Upper(Key) > hEntry.Key = Key > hEntry.Value = Value > Super.Add(Value, s

Re: [Gambas-user] problems in trie class

2014-12-01 Thread Tobias Boege
On Sat, 29 Nov 2014, Charlie Reinl wrote: > Am Samstag, den 29.11.2014, 20:05 +0100 schrieb Tobias Boege: > > On Tue, 18 Nov 2014, Karl Reinl wrote: > > > Salut Tobi, > > > > > > played with you trie example (trietest) it crash if > > > p = h.GetPrefix("texte") find nothing (p=null), even when ch

Re: [Gambas-user] problems in trie class

2014-11-29 Thread Charlie Reinl
Am Samstag, den 29.11.2014, 20:05 +0100 schrieb Tobias Boege: > On Tue, 18 Nov 2014, Karl Reinl wrote: > > Salut Tobi, > > > > played with you trie example (trietest) it crash if > > p = h.GetPrefix("texte") find nothing (p=null), even when change > > to p = h.GetPrefix("Texte") > > > > My chang

Re: [Gambas-user] problems in trie class

2014-11-29 Thread Tobias Boege
On Tue, 18 Nov 2014, Karl Reinl wrote: > Salut Tobi, > > played with you trie example (trietest) it crash if > p = h.GetPrefix("texte") find nothing (p=null), even when change > to p = h.GetPrefix("Texte") > > My change is h["texte"] to h["Texte"] (source attached) Can you run your tests with #

Re: [Gambas-user] problems in trie class

2014-11-29 Thread Tobias Boege
On Tue, 18 Nov 2014, Karl Reinl wrote: > Salut Tobi, > > played with you trie example (trietest) it crash if > p = h.GetPrefix("texte") find nothing (p=null), even when change > to p = h.GetPrefix("Texte") > > My change is h["texte"] to h["Texte"] (source attached) Good news: I can reproduce th

Re: [Gambas-user] problems in trie class

2014-11-21 Thread Karl Reinl
Am Donnerstag, den 20.11.2014, 16:24 +0100 schrieb Tobias Boege: > On Thu, 20 Nov 2014, Charlie Reinl wrote: > > Am Donnerstag, den 20.11.2014, 15:54 +0100 schrieb Tobias Boege: > > > On Tue, 18 Nov 2014, Charlie Reinl wrote: > > > > It is a #11, CRASH REPORT windows opens > > > > > > > > > > Tha

Re: [Gambas-user] problems in trie class

2014-11-20 Thread Charlie Reinl
Am Donnerstag, den 20.11.2014, 16:24 +0100 schrieb Tobias Boege: > On Thu, 20 Nov 2014, Charlie Reinl wrote: > > Am Donnerstag, den 20.11.2014, 15:54 +0100 schrieb Tobias Boege: > > > On Tue, 18 Nov 2014, Charlie Reinl wrote: > > > > It is a #11, CRASH REPORT windows opens > > > > > > > > > > Tha

Re: [Gambas-user] problems in trie class

2014-11-20 Thread Tobias Boege
On Thu, 20 Nov 2014, Charlie Reinl wrote: > Am Donnerstag, den 20.11.2014, 15:54 +0100 schrieb Tobias Boege: > > On Tue, 18 Nov 2014, Charlie Reinl wrote: > > > It is a #11, CRASH REPORT windows opens > > > > > > > Thanks. I'm sure I can work with this but give me a little time; I have a > > busy

Re: [Gambas-user] problems in trie class

2014-11-20 Thread Charlie Reinl
Am Donnerstag, den 20.11.2014, 15:54 +0100 schrieb Tobias Boege: > On Tue, 18 Nov 2014, Charlie Reinl wrote: > > It is a #11, CRASH REPORT windows opens > > > > Thanks. I'm sure I can work with this but give me a little time; I have a > busy week lying ahead... > > As it is a NULL pointer derefe

Re: [Gambas-user] problems in trie class

2014-11-20 Thread Tobias Boege
On Tue, 18 Nov 2014, Charlie Reinl wrote: > It is a #11, CRASH REPORT windows opens > Thanks. I'm sure I can work with this but give me a little time; I have a busy week lying ahead... As it is a NULL pointer dereference bug (apparently), I can commit a "quick fix", that is one which cures the s

Re: [Gambas-user] problems in trie class

2014-11-18 Thread Charlie Reinl
Am Dienstag, den 18.11.2014, 21:48 +0100 schrieb Tobias Boege: > On Tue, 18 Nov 2014, Karl Reinl wrote: > > Salut Tobi, > > > > played with you trie example (trietest) > > > > I'm glad to hear that :-) > > > > > it crash if > > p = h.GetPrefix("texte") find nothing (p=null), even when change >

Re: [Gambas-user] problems in trie class

2014-11-18 Thread Tobias Boege
On Tue, 18 Nov 2014, Karl Reinl wrote: > Salut Tobi, > > played with you trie example (trietest) > I'm glad to hear that :-) > > it crash if > p = h.GetPrefix("texte") find nothing (p=null), even when change > to p = h.GetPrefix("Texte") > > My change is h["texte"] to h["Texte"] (source attach

[Gambas-user] problems in trie class

2014-11-18 Thread Karl Reinl
Salut Tobi, played with you trie example (trietest) it crash if p = h.GetPrefix("texte") find nothing (p=null), even when change to p = h.GetPrefix("Texte") My change is h["texte"] to h["Texte"] (source attached) -- Amicalement Charlie trietest-0.0.1_Charlie.tar.gz Description: application/co