justin = {
main feed
,
music
,
code
= {
cockos
,
reaper
,
wdl
,
ninjam
,
jsfx
,
more
}
,
askjf
,
pubkey
};
Ask Justin Frankel
No reasonable question unanswered since 2009!
Suggested topics: programming, music, sleep, coffee, etc.
Note: please do not ask questions about REAPER features, bugs or scheduling, use the
forums
instead.
Name:
Ask:
Human (enter yes):
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Question:
Is this array class is correct? I'm going to expand it with more operations, but that's the idea: pastebin.com/Ff9US2vE
Asked by Rodrigo (161.148.171.x) on April 30 2012, 4:18pm
Reply on April 30 2012, 5:42pm:
I'm not completely sure if the manual calling of constructors/destructors is reliable. I'd probably make it an array of allocated pointers instead, personally.
Also, maybe worth doing bounds checking on the array accesses? I'm not a big fan of overloading operators, I'd rather do array.Get(x) than use array[x], so I'm aware of what's actually happening when I look at the code.
Comment:
Your Name:
-- Site Owner's Name:
(for human-verification) Comment:
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Copyright 2025 Justin Frankel
.
|
RSS