[Jprogramming] Can a verb (adverb or conjunction) know and echo its own name?

Brian Schott schott.brian at gmail.com
Tue Aug 4 20:46:06 UTC 2020


Devon,

I get slightly different results.
13!:13 produces nothing, but 13!:1 produces the name and y arg prepended
with `'    |`
which may work for me. The number of spaces is a little unpredictable, so
far, and I have not found a way to clean it up.
Below is a session example.
Thanks,

   ownName=: 3 : 0
(13!:1) ''
y
)
   ownName 9
9
|       ownName 9
   JVERSION
Engine: j807/j64/darwin
Release-c: commercial/2019-02-24T10:50:40
Library: 8.07.26
Platform: Darwin 64
Installer: J807 install
InstallPath: /users/brian/j64-807
Contact: www.jsoftware.com

On Tue, Aug 4, 2020 at 3:58 PM Devon McCormick <devonmcc at gmail.com> wrote:

> I think so:
>    ownName=: 3 : 0
>    13!:13 ''
> )
>    ownName ''
> +-------+-+-+-+--------------------++--+----+-+
> |ownName|0|0|3|3 : '   13!:13 '''''||++|+-++| |
> |       | | | |                    ||||||y||| |
> |       | | | |                    ||++|+-++| |
> +-------+-+-+-+--------------------++--+----+-+
>
>
> --
(B=)


More information about the Programming mailing list