methods receive more arguments than defined?

2022-12-21 Thread polifemo
Still reading the vip source, and I've noticed that, often, a method call will have more arguments than defined in the method definition. Like: (dm dirty> (Win) (<> (: undo) (: dirt)) ) .. (if (dirty> (: buffer) This) " * " " ") .. (dirty> (: buffer) This) and (dm load> (Win) .. (load>

Re: methods receive more arguments than defined?

2022-12-21 Thread Alexander Burger
On Wed, Dec 21, 2022 at 05:14:15PM +0100, Frithjof Schulze wrote: > I can’t say much about other the rest of the code, but “This” is not an > argument, but a global variable managed by the system to have the current > object > as a value: Right. > > On 21. Dec 2022, at 16:51, polifemo wrote:

Re: methods receive more arguments than defined?

2022-12-21 Thread Frithjof Schulze
Hi, I can’t say much about other the rest of the code, but “This” is not an argument, but a global variable managed by the system to have the current object as a value: https://software-lab.de/doc/ref.html#oop says: > While a method body is being executed, the global variable This >

Re: methods receive more arguments than defined?

2022-12-21 Thread polifemo
oh, right! The first argument is the object to receive the message, and the second is the argument to the function. Thank you! On Wed, Dec 21, 2022 at 12:34 PM Alexander Burger wrote: > On Wed, Dec 21, 2022 at 05:14:15PM +0100, Frithjof Schulze wrote: > > I can’t say much about other the rest