struct assignment
Displaying 1-6 of 6 total.
1
gannon
|
is there a way to directly assign structs to each other?
like structA = structB;
if not could that be a feature in a future build?
ps: I am not interested in workarounds as I want to make general functions.
Posted on 2004-05-26 21:26:58
|
RageCage
|
no theres not, but I'm sure you already knew that =p
Posted on 2004-05-27 00:58:48
|
mcgrue
|
No there is not, and vecna is highly unlikely to put this in, as 'you cannot do that in C'.
It would be useful, yes. I get around it with the Master Stack model I've shown elsewhere...
Posted on 2004-05-27 01:05:38
|
gannon
|
I was thinking more along the lines of they were the same kind of struct
maybe something that copied all the data from one struct to another (of the same kind) would work but we can't do that at the level we are at because we don't know all about a given struct
Posted on 2004-05-27 02:20:33
|
mcgrue
|
Things like this are not yet possible as structs aren't really references at this point.
I do not believe there are plans for references as such, but we can always hope that the feature fairy will visit us one day.
Posted on 2004-05-27 02:23:12
|
gannon
|
oh I assumed they were references. my mistake
Posted on 2004-05-27 02:45:25
|