I use a word ->list that creates and returns an address. I don't always need to associate this address with a variable name, but I'd like that to be possible.
For the moment, if I want to do so, this look like this:
.s <0> ok
1 2 3 3 ->list .s <1> 140318466418488 ok
VARIABLE mylist ok
mylist ! .s <0> ok
mylist @ . 140318466418488 ok
mylist @ @ . 1 ok
mylist @ 1 cells + @ . 2 ok
...
This provides an indirect addressing to access elements in ->list adress.
Is it possible to create a variable which address is an already known address?
createdoes not reserve any units in the data field, you have do it by yourself, e.g.:CREATE mylist 1 cells allotorCREATE mylist 0 ,VARIABLEword.