poke-devel
[Top][All Lists]
Advanced

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

bpf.pk: defun _print ?


From: Bruno Haible
Subject: bpf.pk: defun _print ?
Date: Sat, 06 Jun 2020 21:00:20 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-179-generic; KDE/5.18.0; x86_64; ; )

Hi,

Quoting http://www.jemarch.net/pokology-20200504.html :

   "the functions defined in struct types are all executed as part
    of the mapper/constructor and, at that time, there is no struct
    value yet to pass to the method"

So there is no point in defining _print as a function. You want to have
it as a method, so that it can be invoked on a completed struct object. Right?

Proposed patch is attached.

Attachment: 0001-pickles-Define-_print-correctly.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]