Re: changing dynamically the name of classes in a source code

2017-02-28 Thread frenchy48
well a last response to the initial message. Though many may think it's useless to change the name of classes and methods I succeeded in implementing a framework (for teaching) that just does that ... next step: may be change also the language keywords dynamically (please don't shoot: don't shoot

Re: changing dynamically the name of classes in a source code

2016-03-31 Thread frenchy48
to aseem: I willl publish my codes as open source (because I think it is important to teach in your own language BTW: arabic is a problem to me because I no not know how students could handle bidirectional code text) in the meantime here is the subclass of groovyConsole: I have also a trait

Re: changing dynamically the name of classes in a source code

2016-03-30 Thread Aseem Bansal
Hi frenchy48 Can you share what you did? Did you subclass groovyConsole and then gave that subclass to your students to be used as groovyConsole? On Tue, Mar 29, 2016 at 7:47 PM, frenchy48 wrote: > answer found > Groovy is fantastic! > Since I use the groovyConsole for my

Re: Proxying how to?!? (was: changing dynamically the name of classes in a source code)

2016-03-29 Thread OC
Jason, thanks for a quick response! On 29. 3. 2016, at 19:09, "Winnebeck, Jason" wrote: > You still have to follow the rules of Java bytecode right, that's why I wrote it's a Java fault (inherited by Groovy), not a Groovy fault. > that is your class

Re: changing dynamically the name of classes in a source code

2016-03-29 Thread frenchy48
answer found Groovy is fantastic! Since I use the groovyConsole for my teaching scripts I created a subclass of groovy console then modified the CompilerConfiguration to accept an importCustomizer that aliases import! fun! - member of Grumpy Old Programmers -- View this message in context:

Re: changing dynamically the name of classes in a source code

2016-03-28 Thread OC
Weird... that's probably a question for Jochen on another guru. Perhaps Lists work in a special way, different from other classes? No idea; I just have tested and found it works. Indeed, with my own class instead of List it leads to the (completely absurd and very anti-object-oriented) “Cannot

Re: changing dynamically the name of classes in a source code

2016-03-28 Thread frenchy48
Thanks for replying as a side note OOP appear only in chapter 8 of my book so I have to survive in the meantime A long long time ago I used object logo ... sticking to groovy helps me to provide the additional codes I want to create simplistic graphics. now back to the main point: when I read

Re: changing dynamically the name of classes in a source code

2016-03-27 Thread OC
Well, I can't resist commenting that a programmer would need English anyway :) That said, can't you simply sublass? Like === class Localizeděščřžýáíí extends LinkedList { } def ěěě=new Localizeděščřžýáíí() ěěě<<'Hello' ěěě<<'note that both class and variable names' ěěě<<'support accented

changing dynamically the name of classes in a source code

2016-03-27 Thread frenchy48
Before asking a question I'l have first to explain WHY this question. I have been writing a book about programming (for beginners) For the labs I use a small subset of Groovy now my labs are slightly boring so I decided to write a small graphical library to facilitate the design of