Re: How do I print a structure?

2025-04-12 Thread ToddAndMargo via perl6-users
On 4/12/25 10:14 AM, Tirifto wrote: Hello! Both `print` and `say` convert their argument to a string, but they do so by calling different methods on the argument. `print` calls the method `.Str`, while `say` calls the method `.gist`. On custom classes (like your PartitionClass), calling `.Str

Re: H9w do I print a structure?

2025-04-12 Thread Tirifto
Hello! Both `print` and `say` convert their argument to a string, but they do so by calling different methods on the argument. `print` calls the method `.Str`, while `say` calls the method `.gist`. On custom classes (like your PartitionClass), calling `.Str` will only return the object’s iden