Log In  

it would be nice, when the poke() would return the address after the poke, like print() does.

for example:

adr=poke(adr,1)

should do the same as

poke(adr,1)
adr+=1

or

adr=poke2(adr,0xffff)

instead of

poke2(adr,0xffff)
adr+=2

or

str="abcdef"
adr = poke(adr,ord(str,1,#str))

instead

str="abcdef"
poke(adr,ord(str,1,#str))
adr+=#str
P#99326 2021-10-29 18:14

how would that work with multi-argument poke?

what’s the use case?

P#99332 2021-10-29 19:06

as the last example (ord returns more than one value here) return the position behind all "multi-argument-values".
In this case it would save 2 Tokens...

P#99333 2021-10-29 19:08

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 01:45:20 | 0.006s | Q:10