passing parameters by reference

From: Tomasz Grobelny (grotk_at_poczta.onet.pl)
Date: 11/27/04


Date: Sat, 27 Nov 2004 18:36:23 +0100

Is it possible to modify a(n associative) list (specificaly: add an element)
passed to a function as parameter (and how)? Equivalent construction in C
would be passing an argument by reference. I tried nsubstitute and it
modifies the list, delete properly deletes elements but I found no function
to add an element. I also tried using setf and setq but they seem to have
no effect (or operate on local copy). TIA

Tomasz Grobelny



Relevant Pages

  • selective access to different classes
    ... I have asked the question in java programmer newsgroup, ... operate in turns call each operaion in sequence, passing only those ... parameters which they modify. ... If any other common design pattern exists for this kind of selective ...
    (comp.object)
  • Re: selective access to different classes
    ... in it are set from outsite your SoundDataHolder. ... the system in a sequence of processing steps and data formats for each ... operate in turns call each operaion in sequence, passing only those ... parameters which they modify. ...
    (comp.object)
  • Re: Emulating lesser shader model
    ... As soon as you get that D3DCAPS9 struct, modify its entries before passing ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Imaging a WindowsCE 4.2 Xybernaut
    ... We'd have to know what the image is that they're passing to the device to ... modify it. ... The OS had been preconfigured for the client, and a lot of features had ...
    (microsoft.public.windowsce.embedded)
  • Re: passing parameters by reference
    ... Tomasz Grobelny wrote: ... > Is it possible to modify alist ... Equivalent construction in C ... I also tried using setf and setq but they seem to have ...
    (comp.lang.lisp)