[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issues with gb.logging Logger, cannot _free


On 4/11/24 16:46, Neil Darlow wrote:
Hi,

Is this the actual code you are running?

The "Try Logger.Begin" statement is missing parenthesis. I would expect a compiler error to be emitted there.

Regards,
Neil Darlow

Parentheses are unnecessary when calling a method that returns nothing. If called on a function that does return a value and the parentheses are omitted, the receiver gets the handle of the method instead of the returned value.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


References:
Issues with gb.logging Logger, cannot _freeT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: Issues with gb.logging Logger, cannot _freeNeil Darlow <neil@xxxxxxxxxxxx>