Precisely. It ain't rocket science but it does make a better compiler...Dany wrote:Yes, supression of all "not used" warnings for variables defined in the Defs file, the same principle I use in my "RamSize" tool.
Search found 26 matches
- 20 May 2010 20:56
- Forum: mikroPascal PRO for PIC Beta Testing
- Topic: Unused global vars not flagged any more.
- Replies: 8
- Views: 4830
Re: Unused global vars not flagged any more.
- 20 May 2010 20:53
- Forum: mikroPascal PRO for PIC General
- Topic: Display voltage on LCD
- Replies: 2
- Views: 2089
Re: Display voltage on LCD
var ch : char; (...) ch := adc_rd div 1000; // prepare value for diplay Lcd_Chr(2, 9, 48+ch); // write ASCII at 2nd row, 9th column (...) ch := (adc_rd div 100) mod 10; Lcd_Chr_CP(48+ch); ch := (adc_rd div 10) mod 10; Lcd_Chr_CP(48+ch); Please, please don't encourage this. The result of an arithmet...
- 15 May 2010 22:34
- Forum: mikroPascal PRO for PIC Wish List
- Topic: Plse implement the proceduretype variable possiblity.
- Replies: 4
- Views: 2703
Re: Plse implement the proceduretype variable possiblity.
I am aware that pointers to routines are already implemented, I uses them extensively Ah, apologies. I should have realised that of all people, with your prodigious and incredibly useful code contributions, you would have already been there! :D (and tips hat) Otherwise (now I see better what you me...
- 15 May 2010 22:11
- Forum: mikroPascal PRO for PIC Beta Testing
- Topic: "nil" not accepted as value for a pointer (OK in v4.60!)
- Replies: 11
- Views: 6354
Re: "nil" not accepted as value for a pointer
'nil' is an integral part of standard pascal and it really should be implemented properly.
- 15 May 2010 22:06
- Forum: mikroPascal PRO for PIC Beta Testing
- Topic: Please allow the keyword "interface" in unit
- Replies: 5
- Views: 3312
Re: Please allow the keyword "interface" in unit
Seconded (and thirded, fourthed etc.) - please implement this properly, along with an initialization section . Borland have pretty much set the standard here so it's either open for improvement or, for immediate compatibility and general user satisfaction - it's surely worthwhile implementing the wh...
- 13 May 2010 21:26
- Forum: mikroPascal PRO for AVR General
- Topic: Converting byte problem
- Replies: 2
- Views: 2006
Re: Converting byte problem
Late comment I know - but that's not correct about this issue being a Standard Pascal restriction. Chr() is simply a function which returns a character and as such it should accept a const, var, pointer etc. like any other function would. Niklaus Wirth (hey - remember him ? :lol: ) states in his Jul...
- 13 May 2010 20:45
- Forum: mikroPascal PRO for PIC General
- Topic: Changes to Pascal compiler in mP v3.50
- Replies: 21
- Views: 10723
Re: Changes to Pascal compiler in mP v3.50
Heh. Yes - it's er, "a bit messy", isn't it? Not so much a workaround as a stroll through a war zone... SizeOf cannot be applied to functions. Statistics seems to be the only source of such info. Yep, I knew SizeOf couldn't be used - blast! :lol: <sigh> A GUI definitely has its place but it's a sad ...
- 13 May 2010 20:16
- Forum: mikroPascal PRO for PIC Wish List
- Topic: Plse implement the proceduretype variable possiblity.
- Replies: 4
- Views: 2703
Re: Plse implement the proceduretype variable possiblity.
This can already be done - at least it can in 3.20, anyway. But - you need to make the variable a pointer to type tProc, as in: type tProc=procedure; var MyProc:^tProc; begin MyProc:=@SomeProcedure; // assign the address of SomeProcedure MyProc^ // execute it through MyProc end. Be careful though - ...
- 12 May 2010 21:20
- Forum: mikroPascal PRO for PIC General
- Topic: Changes to Pascal compiler in mP v3.50
- Replies: 21
- Views: 10723
Re: Changes to Pascal compiler in mP v3.50
the implemented protection may be easily overcome. I'm curious about the workaround you were given - could it be this: Not quite, although your example is extremely interesting and useful to know about. At the very least it retains the ability of the compiler to handle the code's resource allocatio...
- 12 May 2010 20:23
- Forum: mikroPascal PRO for PIC General
- Topic: using a button for menu change
- Replies: 9
- Views: 4333
Re: using a button for menu change
Have a look at the button library and examples provided with the compiler?
- 12 May 2010 20:21
- Forum: mikroPascal PRO for PIC General
- Topic: "external procedure" implemented in v4.00 bèta
- Replies: 10
- Views: 4134
Re: Question: is "procedure xxxx; external;" possible?
Or better still: make it available?
It's not like the code doesn't already exist if it's currently possible in ME's 'C' compiler.
It's not like the code doesn't already exist if it's currently possible in ME's 'C' compiler.
- 12 May 2010 00:59
- Forum: mikroPascal PRO for PIC General
- Topic: Changes to Pascal compiler in mP v3.50
- Replies: 21
- Views: 10723
Re: Changes to Pascal compiler in mP v3.50
Fortunately, it's not, though it's a rather ornamental than practical feature (for me, that is). The idea is that on a mouse click on such comment one may open a file or a web page. Or a JPG picture may be shown while cursor passes over active comment. It could probably be a great teaching aid, or ...
- 10 May 2010 21:44
- Forum: mikroPascal PRO for PIC General
- Topic: Changes to Pascal compiler in mP v3.50
- Replies: 21
- Views: 10723
Re: Changes to Pascal compiler in mP v3.50
For those of us used to our source being undiluted and plain text-commented ASCII - can someone please give a quick summary of what an Active Comment is? I had a brief (and nasty) reminder of that damned paperclip in MS Office, hopping about like a demented idiot... surely it's not just "dancing com...
- 10 May 2010 21:37
- Forum: mikroPascal PRO for PIC General
- Topic: Assignment statement
- Replies: 3
- Views: 1947
Re: Assignment statement
I'm not sure why you're trying to get the address of a variable by referencing its source name - which only exists in the source code, in the simplest sense, or at least in the way you're trying to do it. You're aware that SomeVar:=@Byte1 just gives you a pointer in SomeVar to Byte1 without any fuss...
- 07 May 2010 23:18
- Forum: mikroPascal PRO for PIC Beta Testing
- Topic: Unsuccessfull linking but successfull finishing [Solved]
- Replies: 9
- Views: 4464
Re: Unsuccessfull linking but successfull finishing?
Ah... problem - it's for a client so not really all mine to give.slavisa.zlatanovic wrote:Please, send me your full project.
I'll strip it down to the absolute basics that still show the problem and get back to you.
Edit:
Done - a zip file is on its way to you.
Many thanks.