Hope you all had a good Xmas
My 2-bits...
When editing the 'C' component macro, I believe it would make perfect sense for Flowcode to facilitate selection of declared variables/C-styled functions/etc (just as with any other component macro or calculation), plus automating uppercase conversion and the required FCx_ prefix (or local variable prefixing) in front of the entry.
Furthermore, when hitting "OK" to confirm edits, perhaps the semicolon could be automatically appended to the end of each line if it doesn't exist - unless I've overlooked possible exceptions to regular line termination?
From personal experience this would save a lot of typing, typo's, and similar errors with large/multiple C code blocks, and reduced potential for resident faults only to be discovered at build/run time, though please don't ask what inspired these suggestions
All the best,
Brendan
Slicken up 'C' component macro editing
Moderator: Benj
Forum rules
Only feature requests will be considered here. General questions should not be posted in this forum.
Only feature requests will be considered here. General questions should not be posted in this forum.
-
- Posts: 243
- Joined: Tue Nov 27, 2012 12:53 pm
- Location: Cambridge, UK
- Has thanked: 140 times
- Been thanked: 118 times
- Contact:
Slicken up 'C' component macro editing
LinkedIn Profile...
http://www.linkedin.com/in/brendantownsend
http://www.linkedin.com/in/brendantownsend
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: Slicken up 'C' component macro editing
Hi,
To include Flowcode variables, select them in the right hand pane, just like in calculations. That will insert the variable name in C style.
Trying to add all kinds of semi colons and other syntactic 'sugar' would be dangerous as it would require Flowcode to guess the programmers intentions. When writing C code I regularly use continuation lines, Flowcode should not add semicolons to those lines.
What about
Perfectly valid C code, what would a semi intelligent IDE turn this into??
To include Flowcode variables, select them in the right hand pane, just like in calculations. That will insert the variable name in C style.
Trying to add all kinds of semi colons and other syntactic 'sugar' would be dangerous as it would require Flowcode to guess the programmers intentions. When writing C code I regularly use continuation lines, Flowcode should not add semicolons to those lines.
What about
Code: Select all
vara =
varb =
varc = 1;
Perfectly valid C code, what would a semi intelligent IDE turn this into??
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- Posts: 243
- Joined: Tue Nov 27, 2012 12:53 pm
- Location: Cambridge, UK
- Has thanked: 140 times
- Been thanked: 118 times
- Contact:
Re: Slicken up 'C' component macro editing
Hi.
Thanks, and continuation lines noted.
I was attempting to use the same double-click method as per calculation and other flow icons, but have observed that drag-&-drop must be used for the C component.
All the best,
Brendan
Thanks, and continuation lines noted.
I was attempting to use the same double-click method as per calculation and other flow icons, but have observed that drag-&-drop must be used for the C component.
All the best,
Brendan
LinkedIn Profile...
http://www.linkedin.com/in/brendantownsend
http://www.linkedin.com/in/brendantownsend
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Slicken up 'C' component macro editing
Hello,
I'll make a note of the double click problem in our bug tracker as that sounds like a bug to me. Direct access to graphical lists of registers in the C icon would be a very nice feature.
I'll make a note of the double click problem in our bug tracker as that sounds like a bug to me. Direct access to graphical lists of registers in the C icon would be a very nice feature.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 243
- Joined: Tue Nov 27, 2012 12:53 pm
- Location: Cambridge, UK
- Has thanked: 140 times
- Been thanked: 118 times
- Contact:
Re: Slicken up 'C' component macro editing
That's fantastic - Thanks Ben
All the best,
Brendan
All the best,
Brendan
LinkedIn Profile...
http://www.linkedin.com/in/brendantownsend
http://www.linkedin.com/in/brendantownsend