stdpair.zh
Overview
Creator:
Jambu
Added: 27 May 2024
Tags:
Library
|
View Script |
Information
This header Implements pair and tuple as classes.
Hopefully eventually we will have templates in ZScript which would allow for a true implementation of pairs and tuples. until then this is a workaround I came up with.
Note don't use this unless you absolutely have to, it's for organization purposes mostly.
Hopefully eventually we will have templates in ZScript which would allow for a true implementation of pairs and tuples. until then this is a workaround I came up with.
Note don't use this unless you absolutely have to, it's for organization purposes mostly.
Setup Reviews Comments
Add the file to your headers folder and add the following line to your script buffer.
#import "stdpair.zh"
When you want to create a pair do this...
#import "stdpair.zh"
When you want to create a pair do this...
Pair LaserOffset = new Pair(LaserXOffset,LaserYOffset);When you want to call the components do this...
LaserOffset->T1 LaserOffset->T2Tuple works the same way.


