[gtkada] the "|" not functioning :-)

Arnaud Charlet charlet at ACT-Europe.FR
Mon Jul 12 16:38:09 CEST 2004


>  My code generated by glade-2 is not accepting the simbol "|" for 
> 'concatenate'(?) more que one option (to transform in "one unique value" --> 
> "or" operation?:-) ) 

Note that this is an Ada question, not a GtkAda question.

I am confused, since you answered the question yourself: the "or" operator
in Ada is called "or" (how surprising...), and not "|" as in C.

> he ( the compiler:-) 'claim' for a comma (',') instead of "|" because the 
> compiler believe that the other words (shink fill ,etc) are other options 
> and not a operation "or". if I substitute "|" with "or", this compile. 
> that's it:-) 

So, why don't you do that ?

Arno



More information about the gtkada mailing list