Instantiation of objects -- create new space inmemory?

If I have this:
lPerson : person = new;
lPerson.name.setValue('Martin');
lPerson.phone.setValue('2762109');
lPerson = new;
Does this second instantiation create a new copy of "lPerson" in memory?
Does it destroy the old? Does it create and destroy in the exact same
memory address?
-Martin

In a message dated 97-08-02 00:08:50 EDT, [email protected] (Martin
Nystrom) writes:
<< If I have this:
lPerson : person = new;
lPerson.name.setValue('Martin');
lPerson.phone.setValue('2762109');
lPerson = new;
Does this second instantiation create a new copy of "lPerson" in memory?
Does it destroy the old? Does it create and destroy in the exact same
memory address?
>>
IPerson is just an Object Reference (similar to a Pointer). Initially it
points to nothing and is considered NIL (if IPerson = nil then ...). Now you
can get the IPerson reference to point to an object either by assignment or
by instantiation.
In assignment (IPerson = anotherPerson; ) the Object reference is assigned to
point to the same Object that the assignor (?) reference points; note that it
points to the object and not the reference (in effect there are no pointers
to pointers).
Instantiation is somewhat similar. The =new( ) syntax creates an Object
instance and then the reference is assigned to point to it. So doing a
second =new( ) would create a second object instance and the reference would
be assigned to it. If the first object instance was not referenced by
anything else then you have no way of getting a handle on it. It is
considered garbage and forte will garbage collect the memory at some point.
In your example, the first IPerson object goes AWOL at the second =new( ) and
your IPerson reference is left pointing to a new 'empty' Object which is
somewhere else in memory.
Rob.

Similar Messages

  • I just saved my iphoto original library to my external hard drive, now how do i create new space on my hard drive and create a new iphoto library

    i just saved my iphoto original library to my external hard drive, now how do i create new space on my hard drive and create a new iphoto library

    Trash the copy of the library you just moved. Then Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    But do you want to have two iPhoto Libraries? Why not just use the one on the External?

  • Editing objects creates new page

    I am working in ALCD 8.0. When I attempt to edit an object in any sort of way a new page is created in front of the page I am working on and I am unable to delete it. I have tried copying and pasting into a new document but that no longer works. Any help would be appreciated.

    >is anyone else experiencing this?
    Not me.
    Do you have any strange (non alphanumeric) characters in the path or filename? These are accented latin, unicode stuff (non-roman letters), slashes, colons, etc.
    You can potentially fix it by right clicking (or control clicking if you have a one-button mouse/trackpad) on one of the 2008 folders and hitting "Add parent folder"

  • Merge/create new space in pdf?

    I have one scanned magazine page which has an article (in German) on one side and an advertisement on the other. I wish to remove the advertisement and put in a blank space (so I can put in some translation to English).
    These are the various ways I have tried to accomplish this:
    Can I redact the advertisement but keep the empty page as a placeholder?
    I cropped the advertisement out, but there is no way to add back the rest of the page.
    I created a half page in Photoshop and then exported it and added it to the pdf. Then I have two pages 4.25" x 11" - can I join them together into one 8.5" x 11" page in a pdf?
    The reason I upgraded to XI was specifically so that I could edit text in the pdf (Can't tell you how much trouble this was in Acrobat X!)
    Thanks in advance

    Have you tried using the redaction tool to remove the content you don't want?

  • What is the diffrence between extends and creating new object?

    HI ALL,
    what is the diffrence between extends and creating new object?
    meaning
    class base{
    class derived extends base{
    class base{
    class derived {
    derived(){
    base var = new base();
    can u people tell me diffence from the above examples.
    THANKS.
    ANANDA

    When you create a new object you have to supply the class to which that
    object belongs. A class can extend from another class. If it does so
    explicitly you can define the 'parent' class from which the class extends.
    If you don't explicitly mention anything, the class will implicitly extend
    from the absolute base class named 'Object'.
    Your example is a bit convoluted: when you create a Derived object,
    its constructor creates another object, i.e. an object from the class from
    which the Derived class extends.
    Extending from a class and creating an object don't have much in common.
    kind regards,
    Jos

  • Create a new space in webcenter space, no document option

    when I create a new space according to User Guide for WebCenter Space
    Step 1: Create a Space
    ■ Step 2: Add the Logo to the El Piju Space
    ■ Step 3: Make the Documents Page Available
    ■ Step 4: Upload the Banner Image
    ■ Step 5: Create Subspaces
    ■ Step 6: Add the El Piju Logo to the Subspace
    in step3 , I can not see the checkbox for Document, how to solve this issue, any help will be appreciated greatly!
    Assuming the Documents service is enabled for your WebCenter installation, you c
    make it available to your Space. By default, the Documents page is not shown, so le
    do that now. Once the page is available, you can upload content in the form of
    documents, folders, and wiki pages. You can also share this content with users who
    authorized to view and/or edit content in your Space.
    To make the Documents system page available to the El Piju Space:
    1. While in El Piju - Settings, click the Pages tab.
    2. Under Available Pages, select the Show Page checkbox for Documents.Figure 3–6 Documents - Show Page
    Edited by: 869616 on 2011-7-6 上午3:20
    Edited by: 869616 on 2011-7-6 上午3:41

    Maybe I do not discribe this issue correctly
    Please refer to Oracle® Fusion Middleware Tutorial for Oracle WebCenter Spaces Users 11g Release 1 (11.1.1.4.0) E10277-03
    Step 3: Make the Documents Page Available
    please take a look for Figure 3–6 Documents - Show Page
    Name Reorder Show Page
    Documents checkbox
    I can not see this option for ducuments.(There is not it in my page at all)

  • Problem in creating new objects in ABAP workbench

    Hi ,
        I am getting error in a newly installed SAP system when try to create new objects in ABAP workbench. The error is like'No changes for the user allowed'.
    Can you tell me what the error is here? What can be done for this so that I can create new object.
    Thanks,
    Manas

    Hi,
    Run tcode SU01. (Provided if u hav authorization to run this Tcode)
    Enter SAP* as user and click on the Copy button.
    Enter the name for your new user in the dialog box and click Continue
    Enter a password for your new user.
    Goto Profile sheet and adjust the profiles to be SAP_ALL and SAP_NEW.
    Save the user and logon with it.
    Now you'll be able to do your changes.
    Reward Points if useful.
    Regards
    Rose
    Edited by: Rose Preethi on Mar 31, 2008 5:20 PM

  • Instead of creating new resource, recon is updating the same resource object for a user

    Hi,
    I created a DB target recon in OIM 11g. I ran recon and it created resource object. Resource is visible in Accounts tab.Now, I added one more entry with different description in DB. I ran the recon again. This time, instead of creating new resource object, recon linked it the same user with same resource object.
    My requirement is to create as many resource object as there are entries in DB table. The recon should not link all DB entries with same resource object in IDM. For every entry in DB, recon should create that many resource objects in accounts tab of user.
    Please let me know how to achieve the same.
    Regards,
    Kalpana.

    Hint is : Verify Reconciliation Key field mapping in Process definition
    Thanks,
    Pallavi

  • How to create new object key in BDS?

    Hello,
    I need to create custom class in BDS (OT type) and object key for it.
    In this forum (and in the whole Internet) I found information only about custom class. However there's nothing about object key.
    How could I create new object key in BDS class?
    Great thanx in advance!

    Hi Max,
    you can create BOR object in business object repository, Transaction SWO1, SWO2, search documentaion for BOR obkect.
    Regards,
    Clemens

  • How & where to use Java script to create new button in object detail page

    Hi All,
    I want to create "New/Add button" in object detail page. If i am not wrong i need to use java script for that but could you please let me know how & where to use Java script to create new button in object detail page in CRMOD.
    Thanks in advance.
    Regards,
    Manish

    Any related object on the detail page should have an "Add" or "New" or both buttons by default - This is vanilla functionality and will do the required action.
    If you want to modify this behaviour and do something tricky you will potentially have to go for javascript. You should add the javascript on a custom web tab on that Object.
    Admin --> Application Customization --> Contact -->Contact Web Applet
    Now, add your javascript in the code area, after you select the type = HTML for this web applet, expose this web applet on the Contact detail layout and your javascript will be invoked whenever this page is loaded.
    Check this online document to see how javascript can be embedded in CRM on Demand http://helponmyproject.com/TTOCOD/
    Cheers!
    Royston

  • Creating new Variables/objects in OLAP Universe

    Hi,
    We are currently using BOXI 3.1 Sp2. We have defined BEX queries on which Universes have been generated (using MDX).
    We are then creating WEBI reports using these Unvierses. We are not able to add variables/objects at universe level as the XML tags do not parse. We are on FP 1.4. Is there any solution to this, or is it a Bug?

    Hi Ingo,
    Thanks for the reply.
    I did go thru the document you provided and did accordingly.
    But still the syntax does not parse. In some cases, it does parse, but does not do the required filter.
    Not sure what the issue is.
    We would also like to create new objects/variables using If then else formula and other Characteristics.
    For example, If company=XYZ then Measure-1000 else Measure.
    But we get syntax error. It appears that only measures can be used in an If-then-else logic, which is absurd.
    We have contacted SAP support on this, but they have not come back with a proper reply yet.

  • How to create new bol object  for  BT in sap crm

    HI
         I need to create new bol for BT with relationship  with out using AET ,Could you please explain step by step.
    Thanks and best regards
    Brahmaiah

    Hi Kariyath,
    I suppose its not about interest but a MUST.. sorry but.. unless u include the Logic in the program how can SAP pick these custom Z objects ?
    after u create them and assign to a Tcode in SU24 there is no logic to check these objects. Frankly i see no other chance.... unless SAP comes to us with a great easy way to input these Custom objects
    Keep looking and please Update me if u have any Inputs....on this front..
    All the Best
    Br,
    Sri
    Award points for helpful answers

  • How to create new authorisation object for Transactions?

    Hi,
    How to create new authorisaton object and how to assign that object on a transaction code?
    Case ->
    The transaction code VL01N have the object called V_LIKP_VST under Class "LE_V" that have two auth. fields. one is 'Activity' and other one is "Shipping Point/Receiving Point".
    Here I want to add "Storage location" also. I have created one object called "Z_LIKP_VST" under same calass "LE_V". and added "Activity", "Shipping Poing/Receiving Poing" and "Storage Location". After that I added that object ("Z_LIKP_VST") for particular transaction through "SU24". I maintained the "Display check indicator" for VL01N.
    I created one new role and assigend the particular transacation for a user. but still SAP taking  V_LIKP_VST insted of Z_LIKP_VST.
    How can I change my Z_LIKP_VST on profile.
    Please help
    Thanks in Advance
    Lal

    Hi Kariyath,
    I suppose its not about interest but a MUST.. sorry but.. unless u include the Logic in the program how can SAP pick these custom Z objects ?
    after u create them and assign to a Tcode in SU24 there is no logic to check these objects. Frankly i see no other chance.... unless SAP comes to us with a great easy way to input these Custom objects
    Keep looking and please Update me if u have any Inputs....on this front..
    All the Best
    Br,
    Sri
    Award points for helpful answers

  • When to create new authorization objects

    Hi Experts,
    I am learning SAP Security.
    I have one question , what is the necessity of creating new authroization field and object , when SAP gives a huge list of objects /fields.
    Is there any reason behind like, whenever a customised transaction is created, a new authorization object or filed has to be created?
    Regards,
    Rekharaj

    Trick is to find not only a standard authorization object with the same field you are looking for, but an object already assigned to the users with those roles with the same semantic for all it's fields - so that you can simply reuse the existing concept which is also assigned to the sets of users.
    Often you will find "base" function modules and classes you can use to do all that work for you. Just call them at the correct location in the code and dont forget to check the return code and react to it.
    If you use BAPI APIs to access or process data, then many of them make these same semantically correct checks "out of the box".
    Cheers,
    Julius

  • Create new or use existing info object ? How to decide ?

    All;
    I have this question.
    I enhanced the data source with a field user ID, now I am mapping it in the transfer rules in bw. When I searched in the system (ctrl F in infobjects of RSA1) I could find related info objects but they are currently being used in several places. 
    Can I use the existing one or do I have to create new info object ? How can I decide this ?
    Thanks for your help.

    Hi,
    it just depends on the content of the 0USERNAME or 0USER_NAME depending on use. Usually these Infoobjects contain the source system user name (login name) for example the entries maintained in SU01 of the SAP R3 system.
    If your extractor delivers the same entry, feel free to use it. If it is another kind of username (i.e. external system, database user etc.) it may be usefull to define a new object. But if you define your own ZUSERNAME Infoobject remember to provide loads for the Text and attribute fields (if required). This is for free, if you can use available infoobject which are already maintained by earlier projects.
    Kind regards,
    Jürgen

Maybe you are looking for

  • Uninstall nightly from my pc

    From my control panel I can not uninstall Nightly. I want it gone! How is Nightly Uninstalled

  • Playbook won't boot after upgrade to v2

    I did my OTA upgrade this morning, and it downloaded and appeared to apply successfully.  I hit the "restart" button and the playbook has been stuck at the shiny lights splash screen since.   I've even done a hard reset - still stuck.  I can't get it

  • E7 - screen unresponsive when charging

    The touchscreen on my E7 becomes unresponsive while charging. Essentially it seems to be losing it's accuracy. It stilll works somewhat but you have to tap all over the screen to get a response, and then it's not the one you want. I noticed the same

  • Iphoto 5 failure

    I left iphoto 5 printing photos and returned after they were complete. My computer was at sleep. It would not reopen, so I used the start button to shut down and restart. Now when I try to open my iphoto, it states that the photos are recorded in an

  • Default date fot IT0170

    Hi All, I have a requirement where the default end date for IT170 should be the same year as that of start date. Ex: St Dt : 01.05.2007 then End Date should be       End Dt : 31.12.2007 similarly if its 07.08.2006 then End Date : 31.12.2006. I did wr