FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Moderate update since the initial 10.1 release.
10.0 version

position-y

Arguments: pos

Returns the y component of the argument position.

The function is setf'able, with the setf function being #'(setf position-x) with arguments (y position). Thus:

cg-user(4): (setq p1 (make-position 10 20))
#<position 10 20>
cg-user(5): (position-y p1)
20
cg-user(6): (setf (position-y p1) 30)
30
cg-user(7): p1
#<position 10 30>
cg-user(8): (apply #'(setf position-y) (list 40 p1))
40
cg-user(9): p1
#<position 10 40>
cg-user(10): 

See also position-x and make-position.


Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Moderate update since the initial 10.1 release.
10.0 version