[fpc-pascal] bitwise generator

Francisco Reyes lists at stringsutils.com
Sat Dec 6 15:38:21 CET 2008

ik writes:

> I wish to create a firebird generator that does bitwise  generation rather 
> then ordinal generator.
> I mean:
> 1 2 4 8 16 32 64 128 etc..
> Does anyone have knowledge how to create such generation in firebird ?

I am not clear what you are trying to do.
You are trying to generate the sequence above, that much I get.
However, is it a pascal program which will be a firebird stored procedure?

The algorithm to generate the sequence is trivial so I don't quite follow 
which part you are having problems with. The generation? The creation of the 
firebird stored procedure?

If the question is how to generate the sequence in Firebird and not use FPC, 
then the answer is that you need to have some sort of stored procedure.
You could even just have a table with the values.  

More information about the fpc-pascal mailing list