$10 curiosities in coding
andyh at totallybrilliant.com
Sat Feb 12 01:35:10 UTC 2022
Update : I think it is something to do with tokenization - but I’m really not sure !
On Feb 11, 2022, 8:22 PM -0500, TBS <andyh at totallybrilliant.com>, wrote:
> I have traditionally kept most of my coding to my base modules still residing in $5, so I have really not done a huge amount of code writing in $10, just fixing a few bits up and going back and adding to my $5 version as appropriate !
> However today I have come across something that just strikes me as weird and wanted to bounce it off the list for a sanity check !
> If I type a line such as :
> Do ioMTD.$:SetTestServer(kTrue)
> Where the object is correctly instantiated and otherwise works fine - wherever I have a ‘$:’ call, I get told this is an error and the line refuses to run…..
> If this line is brought over from my v5 base library - it appears to be ok - it seems like it is only an issue when attempting to write it as a new line within my $10 dev version….
> Am I going mad ??????!
> As a corollary, if I make a method in my object as $SetTestServer - and call it as :
> Do ioMTD.$SetTestServer(kTrue)
> Then all is well - however often these are inherited calls which I can’t simply go and change…...
> I have these scattered liberally throughout my app so it is slightly concerning !!
> If anyone has any pearls of wisdom, I am all ears….
> Andy Hilton
> Totally Brilliant Software Inc
> Phone (US) : (863) 409 4870
> Phone (UK) : 0207 193 8582
> Web : www.totallybrilliant.com
> Helpdesk : http://totallybrilliant.kayako.com
> Email : andyh at totallybrilliant.com
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en