Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by hackwrench (7726) on 2007.03.04 23:08 (#53480)
    Period should always go across a pointer if pointer addressed. The pointer should be a part of the typing. No period returns the pointer, period returns the entire structure and period then element returns the element in the structure. Type Vector2D
    X AS INTEGER
    Y AS INTEGER
    END TYPE

    DIM u AS Vector2D ptr, v as Vector2D ptr
    # u will point to the same location as v
    u = v
    # u will hold a copy of the contents of the structure pointed to by v
    u. = v.
    #u holds a copy of the element x in the structure pointed to by v
    u.x = v.x