Hello Viktor

Viktor Szakáts wrote:
> 
> You've readded ISNIL() check in the code. I've removed them
> all recently because the concept is wrong (see my comments
> in ChangeLog). I suggest to change it to HB_IS<type>() because
> this is the only safe solution in this case.
> 

Are you talking about ( hbqtgen.prg ):

            CASE aA[ PRT_L_AND ] .and. aA[ PRT_L_CONST ]
               s := '*hbqt_par_' + aA[ PRT_CAST ] + '( ' + cHBIdx + ' )'
               IF !empty( aA[ PRT_DEFAULT ] ) .and. ( '(' $ aA[ PRT_DEFAULT
] )
                  aA[ PRT_BODY ] := '( HB_ISNIL( '+cHBIdx+' ) ? ' + aA[
PRT_DEFAULT ] +' : '+ s +' )'
               ELSE
                  aA[ PRT_BODY ] := s
               ENDIF

Then it has to stay there as is because at this point of execution
it is unknown type and I have no means to detect it beforehand, 
so HB_ISNIL() is the only checking mechanism. 

Let me know if we have other options.

Regards
Pritpal Bedi
-- 
View this message in context: 
http://www.nabble.com/SF.net-SVN%3A-harbour-project%3A-11263--trunk-harbour-tp23916437p23918074.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to