beneroth changed the topic of #picolisp to: PicoLisp language | The scalpel of software development | Channel Log: https://libera.irclog.whitequark.org/picolisp | Check www.picolisp.com for more information
aw- has joined #picolisp
beneroth has quit [Ping timeout: 240 seconds]
beneroth_ has joined #picolisp
<razzy> I am looking for example of "anonymous" variable. used for rewriting variable in source code. I have trouble finding it.
<aw-> razzy: perhaps look into (setq) or (use) ?
<aw-> (setq Myvar 'hello) (use Myvar (setq Myvar 'goodbye) (prinl Myvar)) (prinl Myvar)
<razzy> aw-: I do not want usual local variable. I want pernament local variable asociated with function. I want function to remember its state.
<razzy> i do not want to use global variable.
<aw-> that doesn't make sense
<aw-> maybe you can look into namespaces I guess..
<razzy> aw-: ussually it does not make sense. but imagine function that detect change, or function that slightly change its behaviour
<razzy> i think i will study namespaces.
<razzy> i remember example, when pil was able to rewrite constant in its source. so the function would remember change in itself.
<razzy> i cannot find it
<Regenaxer> Hi razzy, aw-!
<Regenaxer> Not sure razzy, but why an anonymous var? You can use (box) of course
<Regenaxer> (let Var (box) (set Var ...
<Regenaxer> I see no use though atm
<Regenaxer> Or pehaps this: Sometimes I simply use a cell directly *in* a function. For example in 'cache'
<Regenaxer> Ah, no, not in cache itself, but in some uses of 'cache'
<Regenaxer> http://ix.io/3PbG
<tankf33der> incMe example below
<Regenaxer> haha, well, that's a tough one :)
<Regenaxer> Not really useful as a variable
<Regenaxer> OK, PilCon now!
rob_w has joined #picolisp
<razzy> tankf33der: Regenaxer: thank you :]
<beneroth_> hi all
<beneroth_> Regenaxer, maybe razzy means currying ?
<beneroth_> (at) is also using an anonymous variable (variable value with name)
<beneroth_> (state) can be used with anonymous variable, though I always use it with a local variable
<razzy> beneroth_: incMe seems like answer. (not tested yet)
<beneroth_> okay
<Regenaxer> beneroth_, btw, we are in PilCon ;)
<beneroth_> good :)
<beneroth_> I was in client calls until a minute ago :/
<beneroth_> I'll check if I can join now
<Regenaxer> ok
<beneroth_> tankf33der, Regenaxer, incMe is really a nice example :D
<beneroth_> should be our question "but can you do this?" for the next guy wanting to convince us in here that some new fashionable language is better :D
beneroth_ has quit [Quit: Leaving]
beneroth has joined #picolisp
Regenaxer has quit [*.net *.split]
<razzy> to explain: output of destructive disassembly is 3D map of structure, few GB of data.
razzy has quit [Ping timeout: 256 seconds]
rob_w has quit [Remote host closed the connection]
razzy has joined #picolisp
aw- has quit [Ping timeout: 240 seconds]
alexshendi has joined #picolisp
alexshendi has quit [Ping timeout: 250 seconds]