Re: categories in core

Peter Bienstman <[email protected]> Tue, 14 Oct 2003 14:32:49 +0200
Newsgroups gmane.comp.tools.memaid.devel
Organization Ghent University
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 14 October 2003 14:22, David Calinski wrote:
> On Tue, 14 Oct 2003 10:08:32 +0200
>
> Peter Bienstman <[email protected]> wrote:
> > But can we make the system general enough for learning modes that are
> > not implemented by all frontends? What about the following idea: we
> > define an ID for each of the learning modes, i.e.
> >
> > optimally_scheduled = 0
> > repeat_ahead_of_time = 1
> > ....
>
> Seems OK. Should be easy to implement and use for both core and
> front-ends.
>
> Hm, is 8 modes enough? I think and hope that yes.
> I can use the same space ('char', there is no 'bool' type in C) for up
> to 8 modes.

Hmm, 8 seems a bit small, but it's your choice. 

I don't think it will make a huge difference in file size if you just use a 
char to store a single bool (I think that's what C++ does too, if I'm not 
mistaken).

As long as were not talking about thousands of categories, it's not a big 
waste.

But once again, it's up to you ;-)

Peter

- ------------------------------------------------
Peter Bienstman
Ghent University, Dep. of Information Technology
Sint-Pietersnieuwstraat 41, B-9000 Gent, Belgium
tel: +32 9 264 34 45, fax: +32 9 264 35 93
WWW: http://photonics.intec.ugent.be
email: [email protected]
- ------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/i+zz4dgPAIjyquoRAkKFAKCN95Tr6AFTETqzyVLdGJdXF0wDSQCfbhIR
QtES+YinWswS4M/iGT2KXSs=
=KVWM
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php