[Jprogramming] {{ }} definitions
P Padilcdx
ppadilcdx at gmail.com
Tue Mar 29 18:07:18 UTC 2022
Thank you all for the info. Much appreciated.
> On Mar 29, 2022, at 10:26 AM, Henry Rich <henryhrich at gmail.com> wrote:
>
> When you put a stop in name"n, the visual debug tool creates name123 with
> the value formerly in name and defines name=:name123.
>
> Henry Rich
>
> On Tue, Mar 29, 2022, 1:07 PM Raul Miller <rauldmiller at gmail.com> wrote:
>
>> Note however, that the debugger currently is only able to set
>> breakpoints in named explicit definitions. And adding a rank qualifier
>> means that the contained explicit definition is anonymous. And,
>> there's some awkwardness with suspensions (for example, from assert.)
>> in this context, also, that I should probably better understand.
>>
>> This is not usually a problem, but it can be an issue, so it's
>> something to be aware of.
>>
>> Thanks,
>>
>> --
>> Raul
>>
>>> NB. in your script, say
>>>
>>> foo =: {{
>>> x + y
>>> }}"0 1 NB. just as an example! (Not necessarily a sensible use
>>> of rank!)
>>>
>>> NB. displaying it in the terminal session; direct definition functions
>>> NB. are displayed as conventional explicit definitions
>>>
>>> foo
>>> 4 : ' x + y'"0 1
>>>
>>> So the rank appears where you would have put it in the old form.
>>>
>>> Probably in the wiki somewhere!
>>>
>>> Mike
>>>
>>>
>>>
>>> On 29/03/2022 17:42, P Padilcdx wrote:
>>>> Is there a way to declare the rank when using {{ }} definitions? Or is
>> it only possible when defining via “:”? Apologies if covered in the wiki
>> and I missed it.
>>>> ----------------------------------------------------------------------
>>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>>
>>>
>>> --
>>> This email has been checked for viruses by Avast antivirus software.
>>> https://www.avast.com/antivirus
>>>
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list