[Gambas-user] print does not output if the var is FALSE, how to override?

PICCORO McKAY Lenz mckaygerhard at gmail.com
Fri Jun 29 14:36:30 CEST 2018


2018-06-28 18:09 GMT-04:00 Tobias Boege <taboege at gmail.com>:

> I believe it's called SUBR_print [1]. It's deeply wired into the
> interpreter
> ...



> I don't see how you could modify its implementation without having to ship
> your
> own Gambas to your users. I also think wanting to change the Print
> instruction
>
umm i reviewed the code and you have right!

so then it's normal that the normal Print does output nothig when used the
FAlse variable?


> is misguided. Just add a Print() method to your class, which formats it in
> whatever fancy way you need, and call that.
>
> Regards,
> Tobi
>
> [1] https://gitlab.com/gambas/gambas/blob/master/main/gbx/
> gbx_subr_file.c#L278
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180629/a1f97470/attachment-0001.html>


More information about the User mailing list