Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #388009
| From | fir <fir@grunge.pl> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: enum sets |
| Date | 2024-08-29 20:38 +0200 |
| Organization | i2pn2 (i2pn.org) |
| Message-ID | <adc248b239069f289ffc1b9dee4cd0fa60f2ae64@i2pn2.org> (permalink) |
| References | (2 earlier) <vaptfo$3vten$1@dont-email.me> <0ce67f893035672e67fa53b167e543535077df04@i2pn2.org> <65c6c0f42bad7039d830f931c518057b24feda16@i2pn2.org> <68f811a783d637cd497edb406367fcbbdb5e7288@i2pn2.org> <7ae343b8c106c86c42e19b597c8b072aa88a30e8@i2pn2.org> |
fir wrote: > how to define such microdictionary i dont know > > it could be (speaking on old c style) something like > > dictionary int some[int]; > > some[110]=10; > some['kot']='dog'; > > some[enum lalla]=enum bababa; > > such int-int implementation would need 64 bit value > those entries abowe would be 3 64 bit numbers > > > more entries for one key, no problem > > some['kot']='mors'; > > just another number added > > (so possibly two types of dictionaries can be defined if not more > > > also i gues bitfields can be used > > > dictionary signed:10 some[signed:22]; > > also such syntax probably is acceptable > > dictionary void some[signed:22][signed:10]; > > > some[29][233]; > > now this is container that stores void > > > > > > > > some curiosity is that it seems that normal array can be 'directoried' - turn in directory say you got array int tab[200]; array is a directory that kas one key form 0=199 and one int value per key )jas its start adress and ocupies 200 ints of ram) say you add a method to not revrite value under key but add one tab[22]:= 100 tab[22]:= 120 tab[22]:= 100 this can be done by just adding 3 64 bit values on a side and this construct would be a mix of array and dict made by list of key-values the underlying implementation may also be different liek array of seeds to heap based arrays too) overally c needs such builtin dictionary a lot
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar
enum sets Thiago Adams <thiago.adams@gmail.com> - 2024-08-28 20:42 -0300
Re: enum sets Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-08-28 17:30 -0700
Re: enum sets Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-08-28 17:33 -0700
Re: enum sets Kaz Kylheku <643-408-1753@kylheku.com> - 2024-08-29 01:31 +0000
Re: enum sets Thiago Adams <thiago.adams@gmail.com> - 2024-08-29 08:23 -0300
Re: enum sets David Brown <david.brown@hesbynett.no> - 2024-08-29 09:33 +0200
Re: enum sets Thiago Adams <thiago.adams@gmail.com> - 2024-08-29 08:34 -0300
Re: enum sets Thiago Adams <thiago.adams@gmail.com> - 2024-08-29 08:44 -0300
Re: enum sets Blue-Maned_Hawk <bluemanedhawk@invalid.invalid> - 2024-08-29 13:55 +0000
Re: enum sets David Brown <david.brown@hesbynett.no> - 2024-08-29 21:43 +0200
Re: enum sets fir <fir@grunge.pl> - 2024-08-29 10:18 +0200
Re: enum sets fir <fir@grunge.pl> - 2024-08-29 10:25 +0200
Re: enum sets fir <fir@grunge.pl> - 2024-08-29 10:32 +0200
Re: enum sets fir <fir@grunge.pl> - 2024-08-29 11:29 +0200
Re: enum sets fir <fir@grunge.pl> - 2024-08-29 11:44 +0200
Re: enum sets Thiago Adams <thiago.adams@gmail.com> - 2024-08-29 08:37 -0300
Re: enum sets fir <fir@grunge.pl> - 2024-08-29 14:02 +0200
Re: enum sets fir <fir@grunge.pl> - 2024-08-29 14:10 +0200
Re: enum sets Bonita Montero <Bonita.Montero@gmail.com> - 2024-08-29 10:30 +0200
Re: enum sets Thiago Adams <thiago.adams@gmail.com> - 2024-08-29 08:38 -0300
Re: enum sets fir <fir@grunge.pl> - 2024-08-29 15:09 +0200
Re: enum sets fir <fir@grunge.pl> - 2024-08-29 15:23 +0200
Re: enum sets Thiago Adams <thiago.adams@gmail.com> - 2024-08-29 10:35 -0300
Re: enum sets fir <fir@grunge.pl> - 2024-08-29 15:51 +0200
Re: enum sets fir <fir@grunge.pl> - 2024-08-29 16:09 +0200
Re: enum sets fir <fir@grunge.pl> - 2024-08-29 16:18 +0200
Re: enum sets fir <fir@grunge.pl> - 2024-08-29 20:16 +0200
Re: enum sets fir <fir@grunge.pl> - 2024-08-29 20:38 +0200
Re: enum sets fir <fir@grunge.pl> - 2024-08-29 15:37 +0200
csiph-web