Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #3414 > unrolled thread
| Started by | Martin <spam@spam.spam> |
|---|---|
| First post | 2012-05-04 14:08 +0100 |
| Last post | 2012-05-06 20:43 +0200 |
| Articles | 8 — 6 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Want an option to error the following Martin <spam@spam.spam> - 2012-05-04 14:08 +0100
Re: Want an option to error the following Karl Faller <k.faller_withoutthat_@onlinehome.de> - 2012-05-04 16:14 +0200
Re: Want an option to error the following "Harry B." <bongoplayer@gmail.com> - 2012-05-05 13:57 +0200
Re: Want an option to error the following Karl Faller <k.faller_withoutthat_@onlinehome.de> - 2012-05-05 15:42 +0200
Re: Want an option to error the following "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2012-05-05 16:26 +0200
Re: Want an option to error the following "Harry B." <bongoplayer@gmail.com> - 2012-05-06 12:01 +0200
Re: Want an option to error the following D.J.W. van Kooten <public@ic2remove.this.com> - 2012-05-06 23:09 +0200
Re: Want an option to error the following "Marc Verkade [Marti]" <marcatm@rti.nl> - 2012-05-06 20:43 +0200
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-05-04 14:08 +0100 |
| Subject | Want an option to error the following |
| Message-ID | <cxQor.216235$_Q.203309@fx01.am4> |
Any class variables which are not prefixed by Self: Just spent an hour with a misspelt variable name which was the same name as a class variable! AGHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
[toc] | [next] | [standalone]
| From | Karl Faller <k.faller_withoutthat_@onlinehome.de> |
|---|---|
| Date | 2012-05-04 16:14 +0200 |
| Message-ID | <puo7q71lroq1dstkqsfjv4nq0mnpssh6cm@4ax.com> |
| In reply to | #3414 |
Martin, >Any class variables which are not prefixed by Self: > >Just spent an hour with a misspelt variable name which was the same name >as a class variable! > > >AGHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH <g> - and now imagine, there are folks who find casesensitive varnames a cool idea like: Self:MartinsVar, Self:MartInsVar, Self:martinsvarm happy hunting Karl P.S: sorry, but i don't think there's an error for missing selfs...
[toc] | [prev] | [next] | [standalone]
| From | "Harry B." <bongoplayer@gmail.com> |
|---|---|
| Date | 2012-05-05 13:57 +0200 |
| Message-ID | <jo34io$epq$1@news01.versatel.de> |
| In reply to | #3419 |
Karl, > <g> - and now imagine, there are folks who find casesensitive varnames > a cool idea like: > Self:MartinsVar, Self:MartInsVar, Self:martinsvarm I'm one of those folks. But not for using them as different vars in the same context, but for better reading them. So I like to use allways the same form of writing a var, and the compiler should help me with that. Best Regards, Harry B., who's heart ist beating "schwarz-gelb"!
[toc] | [prev] | [next] | [standalone]
| From | Karl Faller <k.faller_withoutthat_@onlinehome.de> |
|---|---|
| Date | 2012-05-05 15:42 +0200 |
| Message-ID | <87baq7d4csajbemrg18gmjk9g3ggu4l4mb@4ax.com> |
| In reply to | #3426 |
Harry, >> <g> - and now imagine, there are folks who find casesensitive varnames >> a cool idea like: >> Self:MartinsVar, Self:MartInsVar, Self:martinsvarm > >I'm one of those folks. But not for using them as different vars in the >same context, but for better reading them. So I like to use allways the >same form of writing a var, and the compiler should help me with that. IMHO, you confuse here two things: "Unique casing of a var is a feature i remember from, IIRC, Basic 3.0 <g>, and i totally agree that it's useful. But that hat NOTHING to do with _distinguishing_ vars only by their casing. BTW, congrats to Dortmund ;-) from Bavaria Karl >Best Regards, >Harry B., who's heart ist beating "schwarz-gelb"!
[toc] | [prev] | [next] | [standalone]
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Date | 2012-05-05 16:26 +0200 |
| Message-ID | <a0krl5FtrcU1@mid.individual.net> |
| In reply to | #3426 |
> Harry B., who's heart ist beating "schwarz-gelb"! I hope, for football and not politically???? Urs
[toc] | [prev] | [next] | [standalone]
| From | "Harry B." <bongoplayer@gmail.com> |
|---|---|
| Date | 2012-05-06 12:01 +0200 |
| Message-ID | <jo5i5h$t0m$1@news01.versatel.de> |
| In reply to | #3428 |
Yes, of course football! Normaly I should had written "schwazzz-gelb" as it is spoken in that region of germany. Harry B. Am 05.05.2012 16:26, schrieb Urs Eggmann: >> Harry B., who's heart ist beating "schwarz-gelb"! > > I hope, for football and not politically???? > > Urs >
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <public@ic2remove.this.com> |
|---|---|
| Date | 2012-05-06 23:09 +0200 |
| Message-ID | <3ppdq79d3decqc7eok3lpcmdrkg2mu4ua3@4ax.com> |
| In reply to | #3426 |
On Sat, 05 May 2012 13:57:13 +0200, "Harry B." <bongoplayer@gmail.com> wrote: Hello Harry, Karl, > >> <g> - and now imagine, there are folks who find casesensitive varnames >> a cool idea like: > >I'm one of those folks. But not for using them as different vars in the >same context, but for better reading them. So I like to use allways the >same form of writing a var, and the compiler should help me with that. > That would indeed be handy, but as Karl said, only if it forces you to have the same way of writing the variable names. E.g. in VO, I define cMyVar and every time I type e.g. CmYvAR Intellisense will change it to cMyVar (in SP3 removing the current token doesn't always work however). But when you type it right the first time, it works handy. In C#, typing CmYvAR doesn't change anything for you. It just gives a compiler error and you have to re-enter. I have not checked what Vulcan is doing but again I consider VO's way to be the preferable way. Dick
[toc] | [prev] | [next] | [standalone]
| From | "Marc Verkade [Marti]" <marcatm@rti.nl> |
|---|---|
| Date | 2012-05-06 20:43 +0200 |
| Message-ID | <4fa6c701$0$781$58c7af7e@news.kabelfoon.nl> |
| In reply to | #3414 |
Bummer.... I always prefix class variables witj an underscore and create getters and setters if needed. Keeps my code clean and neat... Class Dog Hidden _Color As String Method Init() class Dog Self:_Color:="Black" Return self Access Color Class Dog Return self;_Color "Martin" schreef in bericht news:cxQor.216235$_Q.203309@fx01.am4... Any class variables which are not prefixed by Self: Just spent an hour with a misspelt variable name which was the same name as a class variable! AGHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web