Search found 26 matches

by Bryn
20 May 2010 20:56
Forum: mikroPascal PRO for PIC Beta Testing
Topic: Unused global vars not flagged any more.
Replies: 8
Views: 4812

Re: Unused global vars not flagged any more.

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. :D
Precisely. It ain't rocket science but it does make a better compiler...
by Bryn
20 May 2010 20:53
Forum: mikroPascal PRO for PIC General
Topic: Display voltage on LCD
Replies: 2
Views: 2078

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...
by Bryn
15 May 2010 22:34
Forum: mikroPascal PRO for PIC Wish List
Topic: Plse implement the proceduretype variable possiblity.
Replies: 4
Views: 2687

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...
by Bryn
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: 6326

Re: "nil" not accepted as value for a pointer

'nil' is an integral part of standard pascal and it really should be implemented properly.
by Bryn
15 May 2010 22:06
Forum: mikroPascal PRO for PIC Beta Testing
Topic: Please allow the keyword "interface" in unit
Replies: 5
Views: 3300

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...
by Bryn
13 May 2010 21:26
Forum: mikroPascal PRO for AVR General
Topic: Converting byte problem
Replies: 2
Views: 1997

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...
by Bryn
13 May 2010 20:45
Forum: mikroPascal PRO for PIC General
Topic: Changes to Pascal compiler in mP v3.50
Replies: 21
Views: 10673

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 ...
by Bryn
13 May 2010 20:16
Forum: mikroPascal PRO for PIC Wish List
Topic: Plse implement the proceduretype variable possiblity.
Replies: 4
Views: 2687

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 - ...
by Bryn
12 May 2010 21:20
Forum: mikroPascal PRO for PIC General
Topic: Changes to Pascal compiler in mP v3.50
Replies: 21
Views: 10673

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...
by Bryn
12 May 2010 20:23
Forum: mikroPascal PRO for PIC General
Topic: using a button for menu change
Replies: 9
Views: 4305

Re: using a button for menu change

Have a look at the button library and examples provided with the compiler?
by Bryn
12 May 2010 20:21
Forum: mikroPascal PRO for PIC General
Topic: "external procedure" implemented in v4.00 bèta
Replies: 10
Views: 4102

Re: Question: is "procedure xxxx; external;" possible?

Or better still: make it available? :D
It's not like the code doesn't already exist if it's currently possible in ME's 'C' compiler.
by Bryn
12 May 2010 00:59
Forum: mikroPascal PRO for PIC General
Topic: Changes to Pascal compiler in mP v3.50
Replies: 21
Views: 10673

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 ...
by Bryn
10 May 2010 21:44
Forum: mikroPascal PRO for PIC General
Topic: Changes to Pascal compiler in mP v3.50
Replies: 21
Views: 10673

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...
by Bryn
10 May 2010 21:37
Forum: mikroPascal PRO for PIC General
Topic: Assignment statement
Replies: 3
Views: 1929

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...
by Bryn
07 May 2010 23:18
Forum: mikroPascal PRO for PIC Beta Testing
Topic: Unsuccessfull linking but successfull finishing [Solved]
Replies: 9
Views: 4436

Re: Unsuccessfull linking but successfull finishing?

slavisa.zlatanovic wrote:Please, send me your full project.
Ah... problem - it's for a client so not really all mine to give.
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.

Go to advanced search