Re: I need helping understanding a pointer example

2019-12-31 Thread ToddAndMargo via perl6-users
On 2019-12-31 01:17, Todd Chester via perl6-users wrote: On 2019-12-30 23:14, Veesh Goldman wrote: Method declares a method as opposed to a function. The difference is that in a method, the first argument passed to the function is bound to `self`, which represents the object the call was

Re: I need helping understanding a pointer example

2019-12-31 Thread Todd Chester via perl6-users
On 2019-12-30 23:14, Veesh Goldman wrote: Method declares a method as opposed to a function. The difference is that in a method, the first argument passed to the function is bound to `self`, which represents the object the call was made on. In traditional perl style, when you call a method

Re: I need helping understanding a pointer example

2019-12-30 Thread Veesh Goldman
Method declares a method as opposed to a function. The difference is that in a method, the first argument passed to the function is bound to `self`, which represents the object the call was made on. In traditional perl style, when you call a method on an object `your.face('scrambled eggs')`, it

I need helping understanding a pointer example

2019-12-30 Thread Todd Chester via perl6-users
Hi All, Over at https://docs.raku.org/language/nativecall.html#Basic_use_of_pointers There is an example: useNativeCall; classFooHandleisrepr('CPointer') { # Here are the actual NativeCall functions. subFoo_init() returnsFooHandleisnative("foo") {*} subFoo_free(FooHandle)