v13 - Warning Compiler misses syntax error

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

v13 - Warning Compiler misses syntax error

4D Tech mailing list
I accidentally typed the following line of code:
$0:=(Type($To_Validate->->)=Is Pointer)

Notice anything wrong?
At least the compiler did not...

Error is :
->->

I haven't checked newer versions
Chip


---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|

Re: v13 - Warning Compiler misses syntax error

4D Tech mailing list
In v16 interpreted

C_TEXT($t)
C_POINTER($p1;$p2)

$t:="A"
$p1:=(->$t)
$p2:=(->$p1)

ALERT($p2->->) // Error
ALERT(($p2->)->) // A
ALERT(String(Type($p2->->))) // 2
ALERT(String(Type(($p2->)->))) // 2

Type and Alert have different tolerances?

Keith - CDI


> On May 24, 2017, at 1:50 PM, Chip Scheide via 4D_Tech <[hidden email]> wrote:
>
> I accidentally typed the following line of code:
> $0:=(Type($To_Validate->->)=Is Pointer)
>
> Notice anything wrong?
> At least the compiler did not...
>
> Error is :
> ->->
>
> I haven't checked newer versions
> Chip
>
>
> ---------------
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[hidden email]
> **********************************************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|

Re: v13 - Warning Compiler misses syntax error

4D Tech mailing list
seems like a bug to me
:)

On Wed, 24 May 2017 14:16:32 -0500, Keith Culotta via 4D_Tech wrote:

> In v16 interpreted
>
> C_TEXT($t)
> C_POINTER($p1;$p2)
>
> $t:="A"
> $p1:=(->$t)
> $p2:=(->$p1)
>
> ALERT($p2->->) // Error
> ALERT(($p2->)->) // A
> ALERT(String(Type($p2->->))) // 2
> ALERT(String(Type(($p2->)->))) // 2
>
> Type and Alert have different tolerances?
>
> Keith - CDI
>
>
>> On May 24, 2017, at 1:50 PM, Chip Scheide via 4D_Tech
>> <[hidden email]> wrote:
>>
>> I accidentally typed the following line of code:
>> $0:=(Type($To_Validate->->)=Is Pointer)
>>
>> Notice anything wrong?
>> At least the compiler did not...
>>
>> Error is :
>> ->->
>>
>> I haven't checked newer versions
>> Chip
>>
>>
>> ---------------
>> Gas is for washing parts
>> Alcohol is for drinkin'
>> Nitromethane is for racing
>> **********************************************************************
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4d.com/archives.html
>> Options: http://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:[hidden email]
>> **********************************************************************
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[hidden email]
> **********************************************************************
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|

Re: v13 - Warning Compiler misses syntax error

4D Tech mailing list

> Le 24 mai 2017 à 22:14, Chip Scheide via 4D_Tech <[hidden email]> a écrit :
>
> seems like a bug to me
> :)

v17 feature.
non-disclosure agreement.

--
Arnaud de Montard



**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|

Re: v13 - Warning Compiler misses syntax error

4D Tech mailing list
In reply to this post by 4D Tech mailing list
Chip Scheide:

> I accidentally typed the following line of code:
> $0:=(Type($To_Validate->->)=Is Pointer)
>
> Notice anything wrong?
> At least the compiler did not...
>
> Error is :
> ->->

That is not an error. $To_Validate could be a pointer to a pointer, so from the compiler´s viewpoint all is fine.

Greetings from Germany,
Bernd Fröhlich
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|

Re: v13 - Warning Compiler misses syntax error

4D Tech mailing list
then should not the syntax be:
($To_Validate->)->
dereference the handle, then dereference the pointer

On Thu, 25 May 2017 11:21:21 +0200, Bernd Fröhlich via 4D_Tech wrote:

> Chip Scheide:
>
>> I accidentally typed the following line of code:
>> $0:=(Type($To_Validate->->)=Is Pointer)
>>
>> Notice anything wrong?
>> At least the compiler did not...
>>
>> Error is :
>> ->->
>
> That is not an error. $To_Validate could be a pointer to a pointer,
> so from the compiler´s viewpoint all is fine.
>
> Greetings from Germany,
> Bernd Fröhlich
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[hidden email]
> **********************************************************************
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[hidden email]
**********************************************************************